-
Even if the choice command is not available you could try what I do for getting input and then validate some data:
Use the command SET with /P to prompt for the value of new variable you set to the computer, at the end of the bat file you can clear this variable, here's a example of how to do it :
@ECHO OFF
REM ***************************************************************
REM * THIS WILL GET YOUR NAME AND PUT IT AT THE FIRST LINE OF A BLANK PAGE *
REM ***************************************************************
CLS
ECHO Please enter your first and last name:
SET /P Name=Blablabla (Where "Name" is the variable name you want to use
and "Blablabla" is the message at prompt, could be something like "Enter name here:")
CLS
ECHO Here is your name: %Name%
SET Name= (Clears the Name variable from your computer)
I hope this helps !
-
Choice.exe
Yes, CHOICE is not in Win2K/XP. Don't know why.
But you can get it from the Win2K Resource Kit. It is in there, CHOICE.EXE with the same functionality.