Script tries to reconnect instead of abort
Sometimes the server is flaky and the upload doesn't work. I can't change that (it's not my server) and I can accept if the upload fails. However, for some reason WinSCP tries to reconnect to the server instead of aborting.
I would like to abort this reconnection automatically or after some time so I know this has failed. Now winscp is just retrying this endlessly. Because I'm waiting on the result everything else is waiting until someone comes along and chooses abort.
This is how the script is started:
winscp.exe /console /timeout=60 /xmllog="mylogfile.xml" /script="myscript.script"
option batch abort option confirm off open -passive=on FTP://user:password@ftpserver option transfer binary option batch abort option confirm off put -delete "C:\directory\myfile" "/remotedirectory/" exit
I had assumed that the "option batch abort" would choose automatically for the abort option, but it chooses reconnect instead. Am I missing some setting or is there some way to abort these retries?