ftp automation


The professional tool to automate FTP, SFTP, FTPS and schedule FTP batch jobs

The forum is now read only. Please, go to the the main ScriptFTP website if you need help.
Need help writing a script? Have any question about ScriptFTP?
I am running the following ScriptFTP line ...


and all is working fine but is there a way to either 1) write the $list to a text file or 2) write the $list to LOGTO ... before you even begin the "FOREACH $item in $list GETFILE($item) END FOREACH" - I would like to have a listing of all the files that are in the download - is that possible?


Yes, you can write the file listing to the log file using the PRINT command:

FTP Script
  1. GETLIST($list,REMOTE_FILES,"*_bu.zip")
  3. # For each file in $list...
  4. FOREACH $item IN $list
  5.    PRINT($item)