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
Create a file into the Project Files folder
Re: Create a file into the Project Files folder
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".
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
Beijer Electronics, Inc.
Ron Lloyd | Applications Engineer
Re: Create a file into the Project Files folder
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!
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
Good catch. Sorry about the typo.
Best Regards,
Beijer Electronics, Inc.
Ron Lloyd | Applications Engineer
Beijer Electronics, Inc.
Ron Lloyd | Applications Engineer