TestScript.cmd
@ECHO OFF
ECHO First Parameter: %1
ECHO Second Parameter: %2
PAUSE
GOTO END
:END
ECHO %date% %time%
exit /b %exitstatus%
Result
D:\>TestScript 1 2
First Parameter: 1
Second Parameter: 2
Press any key to continue . . .
TestScript.cmd
@ECHO OFF
ECHO First Parameter: %1
ECHO Second Parameter: %2
PAUSE
GOTO END
:END
ECHO %date% %time%
exit /b %exitstatus%
Result
D:\>TestScript 1 2
First Parameter: 1
Second Parameter: 2
Press any key to continue . . .
Comments