Re: Powershell: No way to disable reconnect
Setting the
https://winscp.net/eng/docs/scriptcommand_option#reconnecttime
Quite the opposite of what you want. You want to set the option to a low value (like one second). Though there's currently no way to turn it off completely (neither in scripting, nor in .NET assembly). If your server is still running, WinSCP will likely manage to reconnect even with the one second limit.
I've added a request for this to the tracker:
https://winscp.net/tracker/1981
You can vote for it there.
reconnecttime
to off
actually enables infinite reconnects:
https://winscp.net/eng/docs/scriptcommand_option#reconnecttime
Quite the opposite of what you want. You want to set the option to a low value (like one second). Though there's currently no way to turn it off completely (neither in scripting, nor in .NET assembly). If your server is still running, WinSCP will likely manage to reconnect even with the one second limit.
I've added a request for this to the tracker:
https://winscp.net/tracker/1981
You can vote for it there.