|
CHOICE
Sets up a selection menu and structure in batch files. Has
been removed from most new versions. Allows user input.
Default is Y or N.
You may make your own choice with the /C: switch. This batch
file displays a menu of three options. Entering 1, 2 or 3
will display a different row of symbols. CHOICE is not
recognized in some versions of NT.
@ECHO OFF
ECHO 1 - Stars
ECHO 2 - Dollar Signs
ECHO 3 - Crosses
CHOICE /C:123
IF errorlevel 3 goto CRS
IF errorlevel 2 goto DLR
IF errorlevel 1 goto STR
:STR
ECHO *******************
ECHO.
PAUSE
CLS
EXIT
:DLR
ECHO $$$$$$$$$$$$$$$$$$$$
ECHO.
PAUSE
CLS
EXIT
:CRS
ECHO +++++++++++++++++++++
ECHO.
PAUSE
CLS
EXIT
Batch File Commands
|