Create a file into the Project Files folder

A forum devoted to the discussion of all topics having to do with scripting and other advanced programming using iX Developer.
Post Reply
Hi-Volt
Posts: 29
Joined: Mon Sep 12, 2011 4:52 am

Create a file into the Project Files folder

Post 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

User avatar
Ron L.
Posts: 214
Joined: Fri Jul 15, 2011 3:21 pm

Re: Create a file into the Project Files folder

Post 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".
Best Regards,

Beijer Electronics, Inc.
Ron Lloyd | Applications Engineer

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

Re: Create a file into the Project Files folder

Post 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!

User avatar
Ron L.
Posts: 214
Joined: Fri Jul 15, 2011 3:21 pm

Re: Create a file into the Project Files folder

Post by Ron L. »

Good catch. Sorry about the typo.
Best Regards,

Beijer Electronics, Inc.
Ron Lloyd | Applications Engineer

Post Reply