Is it possible to configure the FTPClient command to send more than one file at a time? In other words, can I give it an array of file names to transmit? If so, how would I structure said command?
Thanks,
Chris
新对话如下:
In doing some testing, it does not look like the FTPClient supports multiple files, but I will double-check with the developers to make sure there's not a command of which I am unaware.
Regards,
Dana
新对话如下:
I double-checked and the FTPClient cannot send multiple files, though this is something we can consider for future OS versions.
The developer did suggest processing the files using a loop:
dim i
dim Files(3) as String * 64 =
{"USR:File1.dat","USR:File2.dat","USR:File3.dat"}
for i = 1 to 3
FTPClient(...,Files(i) )
next i
The syntax I highlighted above is fairly new (implemented in the most recent OSes); i.e., the ability to initialize a variable when declared. If your file name is dynamic, then you would use some other technique to populate the Files() array.
Regards,
Dana