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

bo_dong

Auto Retry

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,