Script aborts - Synchronization of a folder from several FTP servers

Advertisement

Rem
Guest

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?

Reply with quote

Advertisement

Advertisement

You can post new topics in this forum