Post a reply

Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)


Topic review


Script aborts - Synchronization of a folder from several FTP servers

I would like to use WinSCP to download files daily from several (about 30) FTP servers. I have created the following script, entering all servers one after the other and start it with the Windows Task scheduler.
option batch abort
option confirm off
open ftp://anonymous:anonymous@
synchronize local C:\Localfolder1 /folderonserver
open ftp://anonymous:anonymous@
synchronize local C:\Localfolder2 /folderonserver

Now I have the problem that the script aborts completely if the connection to one of these servers cannot be established or an error occurs during the download (timeout or similar).

Can I specify in the script that if it can't connect to a server or gets an error, it just continues with the next entry?