home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 11 Util / 11-Util.zip / oswait01.zip / SAMPLE.CMD < prev    next >
OS/2 REXX Batch file  |  1994-04-09  |  544b  |  22 lines

  1. REM ** (c) 1994, John M. Warren SAMPLE OS/2 COMMAND FILE TO TEST DOSWAIT!
  2.  
  3. REM ** If you are using a dos version < 5.x then replace the
  4. REM ** @echo off with echo off, in the next line
  5.  
  6. @echo off
  7.  
  8. REM ** Wait for 10 seconds, if 10 was not specified then DOSWAIT! defaults to
  9. REM ** 5 seconds.
  10.  
  11. DOSWAIT! 10
  12.  
  13. REM ** If "Q" was not pressed then jump to :DONE and terminate.
  14. IF NOT ERRORLEVEL 1 GOTO DONE
  15.  
  16. REM ** The "Q" key was pressed and DOSWAIT! set the DOS errorlevel to 1
  17.  
  18. Echo The "Q" (*BREAK*) Key Was Pressed!
  19.  
  20.  
  21. :DONE
  22.