Prompt for String in Batch File

  • Thread starter Thread starter John Ward
  • Start date Start date
J

John Ward

Are there any utilities that I can use if a batch file that will prompt the
user to enter a string and store the value in an environment variable that
are XP compatible/
 
In XP you can use the SET /P variable=[promptString]

Example:

@Echo Off
Set /P UName= Username:
Set /P UPass= Password:

Echo User Name = %UName%
Echo Password = %UPass%
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top