/ Published in: DOS Batch

An exmaple DOS batch file
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
REM Exmaple DOS batch template file @echo off echo My message REM Check passed parameters are correct set _argcActual=0 set _argcExpected=3 REM Does a file exist? REM Do something and check return code %3\my.exe %1 %2 REM Everything is fine so exit normally Goto End :WrongArgs ECHO Incorrect arguments. Args: xxx yyyy exe_path exit /b 1 :CantFindEXE exit /b 2 :NonZeroErrorLevel exit /b 3 :End ECHO Done. exit /b 0
Comments
