Page 1 of 1

Create a file into the Project Files folder

Posted: Fri Oct 21, 2011 10:20 am
by Hi-Volt
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

Re: Create a file into the Project Files folder

Posted: Fri Oct 21, 2011 11:31 am
by Ron L.
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".

Re: Create a file into the Project Files folder

Posted: Mon Oct 24, 2011 1:55 am
by Hi-Volt
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!

Re: Create a file into the Project Files folder

Posted: Mon Oct 24, 2011 9:51 am
by Ron L.
Good catch. Sorry about the typo.