command about "choice"

D

David

Dear all,

Long time agago, I remember MS-DOS have a command named "choice" that can
let me input Y or N to make next step. Now if I want to use in
Win2000/2003/XP command mode, which command can be used like "choice"?

Thank you for your help!
 
A

Alexander Suhovey

David said:
Dear all,

Long time agago, I remember MS-DOS have a command named "choice" that can
let me input Y or N to make next step. Now if I want to use in
Win2000/2003/XP command mode, which command can be used like "choice"?

Thank you for your help!

"set /p" should do the trick (try "set /?" for details), as well as original
choice.exe from Windows 98 Resource Kit which can be downloaded from MS ftp
web site and appears to work just fine in NT family.
ftp://ftp.microsoft.com/Services/TechNet/samples/PS/Win98/Reskit/SCRPTING/
 

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