command about "choice"

  • Thread starter Thread starter David
  • Start date Start date
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!
 
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/
 
Back
Top