if errorlevel 0 goto ok
if errorlevel 0 is matched always as if errorlevel x means "if errorlevel is 0 or greater". Check the documentation for if. Please follow the example in FAQ.
Before posting, please read how to report bug or request support effectively.
Bug reports without an attached log file are usually useless.
if errorlevel 0 goto ok
if errorlevel 0 is matched always as if errorlevel x means "if errorlevel is 0 or greater". Check the documentation for if. Please follow the example in FAQ.
set errorlevel=0
C:\programm\WinSCP3\WinSCP.exe /console /script=testscript.txt /log=testscript.log
if errorlevel 0 goto ok
:error
echo error
goto end
:ok
echo ok
goto end
:end
option batch abort
option confirm off
open sftp://******************************
cd /home/
put D:\test*.txt
close
exit
del?