I think this might be what you are looking for:
@ECHO OFF SET /p paramA=Parameter A: ECHO you typed %paramA% PAUSE
Line 1 stops the commands in the batch file from echoing to the console. Line 2 asks the user for “Parameter A:” and waits for the user to enter a value and press “Enter”. The value goes into paramA variable. Line 3 echoes the value of the paramA variable to the console. Line 4 expects the user to hit any key.
Please note that the SET / p command does not work for each version of the windows, I believe that it was introduced in 2000, but I could be mistaken in the version.
source share