alex said:
does anyone know where i can get a choice command that
will run in dos mode? thanks
If the query is 'what do I use in W2k instead of the 'choice'
command in Win9x then the answer is to use the 'SET' command (see
set /?)
I use the following to branch from a single-digit input:
(SET Choice=)
(SET /P Choice=Type the number and press Enter or Return: )
:: Reduce input to a single digit and test if valid
IF "%Choice%" NEQ "" SET Choice=%Choice:~0,1%
if x%choice% == x GOTO :NotValid
ECHO:
if %choice% GEQ 0 if %choice% LEQ 9 goto:item%choice%
Ray