How to create a prompt for user input in a batch file?

A

Anthony

In old win9x batch files I could put a ? at the end of the
batch file name it would prompt the user for input ie

test.bat ?

In W2K that doesn't work. So how can I prompt a user for
input in a batch file?
 
R

Ray at

SET /P variable=[promptString]


i.e.
set /p WhatPersonEntered=Enter something here please:
echo You entered %WhatPersonEntered%.


Set SET /? for more details

Ray at work
 

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

Top