Post a reply

Options
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)

Options

Topic review

Rem

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@10.1.1.1
synchronize local C:\Localfolder1 /folderonserver
 
open ftp://anonymous:anonymous@10.1.1.2
synchronize local C:\Localfolder2 /folderonserver
 
...
exit

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?