Topic "SFTP next Command Line"

Author Message
[View user's profile]

Joined: 2017-09-08
Posts: 1
Hi WinSCP Team,

I have a script which is copying from a remote server to my local PC. Batch File is running but when the
IP is down/powered off script will not run the next commandline. It gives me an error. See Script Below. Please help..
I want that even the other servers are down script will continue or it will run to the next commandline..

C:\>cd Program Files (x86)/
C:\Program Files (x86)>cd WinSCP/
C:\Program Files (x86)\WinSCP> /script=POS.txt
Searching for host...
Network error: Connection to "" timed out.
C:\Program Files (x86)\WinSCP>pause
Press any key to continue . . .

This is the script::

open sftp://pos:pos@
recv -neweronly /opt/simplepos/data/rsalphaland/*.zip C:\db_backup\POS\Lane1\

open sftp://pos:pos@
recv -neweronly /opt/simplepos/data/rsalphaland/*.zip C:\db_backup\POS\Lane2\

open sftp://pos:pos@
recv -neweronly /opt/simplepos/data/rsalphaland/*.zip C:\db_backup\POS\Lane3\

open sftp://pos:pos@
recv -neweronly /opt/simplepos/data/rsalphaland/*.zip C:\db_backup\POS\Lane4\

open sftp://pos:pos@
recv -neweronly /opt/simplepos/data/rsalphaland/*.zip C:\db_backup\POS\Lane5\

open sftp://pos:pos@
recv -neweronly /opt/simplepos/data/rsalphaland/*.zip C:\db_backup\POS\Lane6\

open sftp://pos:pos@
recv -neweronly /opt/simplepos/data/rsalphaland/*.zip C:\db_backup\POS\Lane7\

open sftp://pos:pos@
recv -neweronly /opt/simplepos/data/rsalphaland/*.zip C:\db_backup\POS\Lane8\

[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 27058
Location: Prague, Czechia
Your duplicate post on Super User:

You can post new topics in this forum


What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!


About donations

$9   $19   $49   $99

About donations


WinSCP Privacy Policy

WinSCP License