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.

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)


Topic review


Re: keepuptodate exits when connection closes

martin wrote:

You can use a batch file like this:

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.

keepuptodate exits when connection closes

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

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?