10-27-2008 10:40 AM
I have tried to use the "FTP store multiple.vi" but I have not been successful. This vi only works for me when uploading one file.
Normally I use a FTP program where I upload one folder containing all the files and subfolders. My question is:Is it possible to upload several files and subfolders using one vi call without naming them all?
10-28-2008 05:37 AM
Hi,
I haven't found a way for selecting files, folders and subfolders at once, and then using LV uploading the entire ting to a FTP server.
However this doesn't mean it can't be done in steps:
I presume you are using LV Internet toolkit. "FTP Put Multiple Files.VI" has a "file specifications" input, which is an array of clusters. The cluster contains the remote- and local path information of the file you want to upload tothe FTP Server. So what you need is to find a way in LV to fill up this array with the files you want to upload.
I have attached a llb that can select multiple files in LV and return their paths to an array.
From "FTP Browser.vi" in LV Example Finder there is a function where you can create new FTP folders. Please take a look at that example.
What you want is select multiple files and upload them to FTP server. Then create some new folders and upload new files by adding the new pathnames to the "remote path" inputs.
I hope it all makes sense and please let me know how it goes.
Thanks!