Topic "Batch won't exit"

Author Message
fcleyet
[View user's profile]

Joined: 2017-07-12
Posts: 1
Location: Switzerland
Hello,

I have a batch that doesn't exit and reconnect indefinitely.

The Batch:
option reconnecttime 1
option batch abort
option confirm off
OPEN ftp://xxxx:yyyy@ftp.wwww.com -passive
LCD "D:\"
PUT "xxxxx.zip"
CLOSE
exit

The Result:
In the attached image.

Why doesn't the script auto abort? I am using option batch abort. Am I missing something ?

Thanks in advance for your help.
winscp.gif (26.44 KB)

Description: (none)

winscp.gif

martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 26462
Location: Prague, Czechia
See https://winscp.net/eng/docs/scriptcommand_option#reconnecttime
Mark123746373

Guest


Hi, i got the same problem.
The option command is not working.

Quote:
Connecting to ftp.XXXXXXX.com ...
TLS connection established. Waiting for welcome message...
Connected
Starting the session...
Session started.
Active session: [1] XXXXXXXXX@ftp.XXXXXXXX.com
batch abort
reconnecttime 120
FILE | 0 B | 0,0 KB/s | binary | 0%
Lost connection.
Timeout detected. (control connection)
Copying files to remote side failed.
(A)bort, (R)econnect (0 s): Reconnect <<<<=== WHY???
Connecting to ftp.XXXXXXXX.com ...


Tracker Bug 1169 only solved "Do not indefinitely retry transfer with FTP protocol when opening transfer channel is failing" problem.
If the problem is NOT while opening but after (e.g. Lost connection), there still is infinite retry.
https://winscp.net/tracker/show_bug.cgi?id=1169

Kind regards, Mark
Advertisements

You can post new topics in this forum






Search

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