Script

FTP

The professional tool to automate FTP, SFTP, FTPS

and schedule FTP batch jobs

MENU MENU
Need help writing a script? Have any question about ScriptFTP?
I am running the following ScriptFTP line ...

GETLIST($list,REMOTE_FILES,"*_bu.zip")

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?

Thanks
Hi,

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

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