home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The World of Computer Software
/
World_Of_Computer_Software-02-387-Vol-3of3.iso
/
t
/
tguquit.zip
/
WAIT8902.ZIP
/
TESTWAIT.BAT
next >
Wrap
DOS Batch File
|
1989-02-06
|
570b
|
21 lines
echo off
cls
echo Pausing for 30 seconds. Press the space bar for errorlevel 1.
echo Press a letter or number for errorlevel 2. Program will time-
echo out with errorlevel 0 in thirty seconds if no key is pressed.
wait 30
if errorlevel 3 goto error
if errorlevel 2 goto e2
if errorlevel 1 goto e1
if errorlevel 0 echo errorlevel = 0 (go for main-engine start)
goto end
:e1
echo errorlevel = 1 (whitespace)
goto end
:e2
echo errorlevel = 2 (non-whitespace)
goto end
:error
eek a bug!
:end