Re: how do you create a multiple choice question in dos with XP??


[ Follow Ups ] [ Post Followup ] [ The EasyDOS Forum ] [ FAQ ]

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...............




Follow Ups:



Post a Followup (use TAB key to move between boxes - NOT ENTER or RETURN)

Name:
E-Mail:

Subject:

Type your comments in the box below and SUBMIT:


[ Follow Ups ] [ Post Followup ] [ The EasyDOS Forum ] [ FAQ ]