v.5.1.4 ERRORLEVEL is equal to 0 after authentication failed
Hi!
I'm running portable version of 5.1.4 on Win 2000 SP4 x86 machine and getting %ERRORLEVEL% equal to 0 if authentication for protocol FTP fails
I'm analyzing this variable and depending on its value deleting files prepared for transfer.
batch file
script file
shows me
log's tail
I'm running portable version of 5.1.4 on Win 2000 SP4 x86 machine and getting %ERRORLEVEL% equal to 0 if authentication for protocol FTP fails
I'm analyzing this variable and depending on its value deleting files prepared for transfer.
batch file
set ftp_user=u set ftp_pass=p set ftp_host=ftp.example.com set source_mask=C:\Temp\*.txt winscp.com /script=script.txt /log=winscp.log echo Error: %ERRORLEVEL%
script file
option batch abort option confirm off open ftp://%ftp_user%:%ftp_pass%@%ftp_host% option transfer binary put "%source_mask%" close exit
shows me
batch abort confirm off Connecting to ftp.example.com ... Connected with ftp.example.com. Waiting for welcome message... Access denied. Authentication failed. Error: 0
log's tail
< 2013-03-04 16:57:09.188 331 Password required for u > 2013-03-04 16:57:09.188 PASS * < 2013-03-04 16:57:09.204 530 Login incorrect . 2013-03-04 16:57:09.204 Connection failed. . 2013-03-04 16:57:09.204 Password prompt (last login attempt failed)