I have the following batch file that when run asks the user for input. This works fine.
@REM Sample batch file SET PARAM1=\"\" SET PARAM2=\"\" SET /P PARAM1=
In main.cmd:
main.cmd
set param1=%~1 set param2=%~2 echo %param1% - %param2%
In caller.cmd:
caller.cmd
call main.cmd hello world
Output:
hello - world
Reference for batch script parameters