it_guy wrote:
The same problem. WinSCP.exe does not stop reconnecting. Tried all command line switches, nothing helps.
WinSCP always chooses to "Reconnect" instead of "Abort". My log is attached.
First, I do not understand the problem. What is wrong about WinSCP reconnecting once in this particular case?
Anyway, you cannot prevent WinSCP from trying to reconnect at all from script only. You would have to configure this in GUI:
https://winscp.net/eng/docs/ui_pref_resume
See also:
https://winscp.net/eng/docs/faq_script_ini
In script you can only limit time WinSCP tries to reconnect to shortest possible time (one second) using
option reconnecttime 1
.
The OP used wrong syntax without
option
. And he probably believed that value
off
means no reconnect. But it means no limit on reconnect time.