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

janosh

thanks for your answer. what is the effect of using the .com i/o .exe file? in case there is no network problem between two loops, will there be two instances of winscp? or will the second call terminate/replace the first one?
martin

Re: Automatically reconnect in console mode?

No, this is not supported. Though you can loop the whole script in a .bat file (make sure you use winscp.com, not .exe).
janosh

Automatically reconnect in console mode?

I'm using WinSCP 5.1.4

I am using the "keep update" feature to sync a local folder with my remote folder over SFTP.

Command Line: "C:\...\winscp514\WinSCP.exe" /console /script="myscript.txt"

myscript:
open mysession
option reconnecttime 120
keepuptodate "D:\Hosted\private" "/home/host1/private" -delete -filemask="*.php"

If the connection temporarily crashes, it says "Network error: Software causes connection abort / Session 'mysession' closed / No session."

Is there a way to config, so WinSCP tries to re-connect automatically :?:

Thanks for your help
rgds,
janosh