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 >
DOS Batch File  |  1989-02-06  |  570b  |  21 lines

  1.    echo off
  2.    cls
  3.    echo Pausing for 30 seconds.  Press the space bar for errorlevel 1.
  4.    echo Press a letter or number for errorlevel 2.  Program will time-
  5.    echo out with errorlevel 0 in thirty seconds if no key is pressed.
  6.    wait 30
  7.    if errorlevel 3 goto error
  8.    if errorlevel 2 goto e2
  9.    if errorlevel 1 goto e1
  10.    if errorlevel 0 echo errorlevel = 0 (go for main-engine start)
  11.    goto end
  12.    :e1
  13.    echo errorlevel = 1 (whitespace)
  14.    goto end
  15.    :e2
  16.    echo errorlevel = 2 (non-whitespace)
  17.    goto end
  18.    :error
  19.    eek a bug!
  20.    :end
  21.