Topic "Script will no Abort using Option Batch Abort"

Author Message
cc

Guest


For some reason when my network drops my script will not abort.

Heres the command:


Code:
"%~dp0\winscp.exe" /console /script="script.txt"
exit



and the script.txt:

Code:
option batch abort
option confirm off
open ftp://user:pass@ftp.site.com/
cd /directory/
synchronize local
exit



When i pull my network cable(to test for network drop) I get:

Code:
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 ?
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24555
Location: Prague, Czechia
Your duplicate question on StackOverflow:
http://stackoverflow.com/questions/26743308/winscp-script-will-not-exit-after-error-even-with-option-batch-abort
Advertisements

You can post new topics in this forum






Search Site

What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!

Donate

About donations

$9   $19   $49   $99

About donations

Recommend

WinSCP Privacy Policy

WinSCP License