Topic "Auto Retry"

Author Message
bo_dong
[View user's profile]

Joined: 2011-09-22
Posts: 1
Location: United States
Here is my code in a batch file scheduled to run once a day.

winscp.com /console /command "option confirm off" "open ftps://user:password@www.domain.com" "put abc.zip" "exit"

Sometimes, the transfer got broken and the program waits for input to retry or abort. Here is the error message:

Error transferring file 'abc.zip'.
Copying files to remote side failed.
can't access file.
(A)bort, (R)etry, (S)kip, Ski(p) all:

But scheduled job runs in its own window, and no one is there to type in "retry". So the backup job failed. I have looked at similiar posts and tried with SessionReopenAuto in .ini file and /rawsettings, but could not get them to work. Can you please provide a complete example to solve this problem? Prefer to include auto-retry in the command line if possible.

Thanks,
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24530
Location: Prague, Czechia
You are missing
option batch on
or
option batch abort

See
http://winscp.net/eng/docs/scriptcommand_option
_________________
Martin Prikryl
Advertisements

You can post new topics in this forum






Search Site

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!

Donate

About donations

$9   $19   $49   $99

About donations

Recommend

WinSCP Privacy Policy

WinSCP License