Welcome Guest ( Login | Register )



All times are UTC - 7 hours [ DST ]



Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: Create a file into the Project Files folder
PostPosted: Fri Oct 21, 2011 10:20 am 

Joined: Mon Sep 12, 2011 4:52 am
Posts: 29

Offline
Hi. I need to create a file ("Test.txt" for example) into the Project Files Folder (accessible via ftp) by script. Which is the file path name that I have to write?
Another question: is it possible, by panel, to show the contents of the project file folder and send all the files to an usb drive?
Thank you.
Best regards


 Profile  
 
 Post subject: Re: Create a file into the Project Files folder
PostPosted: Fri Oct 21, 2011 11:31 am 
User avatar

Joined: Fri Jul 15, 2011 3:21 pm
Posts: 214

Offline
The path is "\FlashDrive\Project\ProjectFiles".

The .NET Compact Framework includes the function Directory.GetFiles that you can use to read the files in a directory.
http://msdn.microsoft.com/en-us/library ... 90%29.aspx

You can use the Copy method to copy a file to the USB stick.
http://msdn.microsoft.com/en-us/library ... 90%29.aspx

When a USB stick is present, it will be listed as the directory "\Hard Disk".

_________________
Best Regards,

Beijer Electronics, Inc.
Ron Lloyd | Applications Engineer


 Profile  
 
 Post subject: Re: Create a file into the Project Files folder
PostPosted: Mon Oct 24, 2011 1:55 am 

Joined: Mon Sep 12, 2011 4:52 am
Posts: 29

Offline
Thank you for your answer.
There's only a little mistake in the Project File Folder path. The correct path is: "\FlashDrive\Project\Project Files", while the USB stick path works fine.
Best regards!


 Profile  
 
 Post subject: Re: Create a file into the Project Files folder
PostPosted: Mon Oct 24, 2011 9:51 am 
User avatar

Joined: Fri Jul 15, 2011 3:21 pm
Posts: 214

Offline
Good catch. Sorry about the typo.

_________________
Best Regards,

Beijer Electronics, Inc.
Ron Lloyd | Applications Engineer


 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC - 7 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron