What you need is done using the SET command:
SET /P variable=[promptString]
But please see my comment to the question: it could be much better to use all input in command-line parameters.
For more help on batch, do the following:
Visit this site loop what it suggests for you:
http://www.robvanderwoude.com[
^].
In particular, look at this page:
http://www.robvanderwoude.com/allhelp.php[
^].
If gives you the utility to generate complete batch help from your system. Use it to generate help and read it; you will find more detailed information on how to use each batch construct or command. It may surprise you: in newer systems, there are functions and calls (in contrast to go to, with return) and a lot more.
—SA