Post a reply

Before posting, please read how to report bug or request support effectively.

Bug reports without an attached log file are usually useless.

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

FtpEager

Re: keepuptodate exits when connection closes

martin wrote:

You can use a batch file like this:
https://winscp.net/eng/docs/script_retry

Oh thanks a lot, Tweaked a bit and it runs forever (and added scheduled restart from Task Scheduler in case someone takes down the cmd process). Problem solved I think.
FtpEager

keepuptodate exits when connection closes

Windows 10
WinSCP.exe /script=<see below>

Script:
open ftp://user:password@mysite.tld
keepuptodate <localfolder>

All is good until e.g. ftp server is stopped, ports are closed by firewall or other network problems, then the WinSCP process is stopped after reporting: "Script: Lost connection" etc.
How to script so connection is retried instead of process exiting?