Uploading file to several servers fails

Advertisement

Flanders
Guest

Uploading file to several servers fails

Hi,

I have several servers that I frequently uploads a file to. I use a script like this:

--------------------------------------------------
option batch abort
option confirm off

open ftp://xxx:xxx@10.0.161.17 -timeout=30
put "C:\Documents and Settings\Updating tool\CSW0070.exe" /Update/*
open ftp://xxx:xxx@10.0.161.25 -timeout=30
put "C:\Documents and Settings\Updating tool\CSW0070.exe" /Update/*
open ftp://xxx:xxx@10.0.161.65 -timeout=30
put "C:\Documents and Settings\Updating tool\CSW0070.exe" /Update/*

exit

--------------------------------------------------

My problem is that if when my script tries to connect to a server that is offline, then the script stops/fails, I get the following message: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.

Is there any way to force WinSCP to skip the server that is offline and try the next server in the script?

Thanks!

--
Flanders

Reply with quote

Advertisement

Advertisement

You can post new topics in this forum