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 . . .
Last modified: August 14, 2020

Author

Comments

Write a Reply or Comment