ftp automation

ScriptFTP

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?
Hi Carl, I was wondering if would it be possible to pass a variable to the sync command instead of the parameter DOWNLOAD or UPLOAD. Something like $result=SYNC($localdir,$remotedir, $downloadOrUpload)
so that I could handle all possibilities of upload and download with only one line of code. Thanks
Hi,

No, sorry. It is not possible. That parameter of the SYNC command does not accept variables. You have to call SYNC twice, one with DOWNLOAD and other with UPLOAD