home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
DP Tool Club 24
/
CD_ASCQ_24_0995.iso
/
vrac
/
tsutlf15.zip
/
CHTEST.BAT
< prev
next >
Wrap
DOS Batch File
|
1993-08-07
|
492b
|
13 lines
@echo off
echo ┌───────────────────────────────────┐
echo │ An example of CHOOSE.EXE usage │
echo │ By prof. Timo Salmi, Sat 7-Aug-93 │
echo └───────────────────────────────────┘
echo.
choose /c:yn /t:n,5 "Give your choice "
if errorlevel==255 echo No such choice (255)
if not errorlevel==3 if errorlevel==2 echo The choice was a n (2)
if not errorlevel==2 if errorlevel==1 echo The choice was a y (1)
if not errorlevel==1 if errorlevel==0 echo The choice was interrupted (0)