Posted by Valerie on March 12, 2009 at 04:49:14:
In Reply to: how do you create a multiple choice question in dos with XP?? posted by callum on March 11, 2009 at 21:32:03:
Start by echoing onscreen choices then use the set /p command
e.g.
echo What is the best color scheme?
echo.
echo.
echo Code Colors
echo --------------------------
echo 1 Red on white
echo 2 Green on yellow
echo 3 etc..........
echo.
set /p sel=Enter the code for your selection:
If %sel% equ 1 {further commands}
if %sel% equ 2 {further commands}
etc...............