Posted: 2011-05-18 01:21
winscp.com /script=automate.txt /log="C:\WinSCP\logs\mylog.log"
IF ERRORLEVEL 0 GOTO SUCCESS
IF ERRORLEVEL 1 GOTO FAILED
----This is AUTOMATE.TXT----
option batch abort
option confirm off
get *.* C:\pm_server\qwerty\incoming\uiop\*.*
When I run this with an invalid password I get
but the ERRORLEVEL is returned as 0
How can I detect a failed login?
Location: Prague, Czechia
I have sent you an email.
Posted: 2011-05-18 18:30
Note that IF ERRORLEVEL X means IF ERRORLEVEL >= X.
I totally forgot the >= meaning. At one time I had the conditions reversed in their order but probably rearranged them for 'clarity'.
Posted: 2011-09-09 14:02
I'm having same issue please assist on it.
You can post new topics in this forum
And it's free!