Differences

This shows you the differences between the selected revisions of the page.

2014-11-21 2014-11-24
splitting command line (martin) improving testing for errorlevel (martin)
Line 532: Line 532:
    "exit"     "exit"
-if errorlevel 1 goto error+if %ERRORLEVEL% neq 0 goto error
echo File %REMOTE_PATH% exists echo File %REMOTE_PATH% exists
Line 637: Line 637:
<code batch> <code batch>
winscp.com /script=example.txt winscp.com /script=example.txt
-if errorlevel 1 goto error+if %ERRORLEVEL% neq 0 goto error
echo Upload succeeded, moving local files echo Upload succeeded, moving local files
Line 697: Line 697:
<code batch> <code batch>
winscp.com /script=example.txt /parameter %* winscp.com /script=example.txt /parameter %*
-if errorlevel 1 goto error+if %ERRORLEVEL% neq 0 goto error
echo Retrieving files succeeded echo Retrieving files succeeded

Last modified: by martin