Heres the command:
"%~dp0\winscp.exe" /console /script="script.txt" exit
and the script.txt:
option batch abort option confirm off open ftp://user:email@example.com/ cd /directory/ synchronize local exit
When i pull my network cable(to test for network drop) I get:
The requested name is valid, but no data of the requested type was found. Connection failed. (A)bort, (R)econnect (5 s): .. (A)bort, (R)econnect (0 s): Reconnect
It will continue to try and reconnect indefinitely.
Why doesn't the script auto abort? I am using option batch abort. Am I missing something ?