Errorlevel always 0 NT 4

Advertisement

Hopper
Joined:
Posts:
1

Errorlevel always 0 NT 4

Hi,

I'm using a simple put winscpscript.txt to scp a file:
option batch abort
open user:password@example.com
put c:/localfile*.* /remotedir/
close
On the other hand, I'm using a NT batch like this:
:retryloop
winscp3.com /script=winscpscript.txt 
echo errorlevel=%errorlevel%
if %errorlevel% neq 0 goto retryloop
delete localfile*.*
Unfortunately, the exit code is ALWAYS 0, which means that the local file is always deleted even if
you plug off the network cable.
Of course, there's a timeout of winscp.
I've read all your docs and suggestions about this topic and tried out a lot of things to check if NT4 has a problem with errorlevels but I still can't find why you always return 0.

Please help!

Thanks in advance!

Reply with quote

Advertisement

Advertisement

You can post new topics in this forum