home *** CD-ROM | disk | FTP | other *** search
/ Black Box 4 / BlackBox.cdr / batch / timedo10.arj / RUNTIME.BAT < prev    next >
DOS Batch File  |  1992-03-14  |  2KB  |  84 lines

  1. @ECHO OFF
  2.  
  3. :BEGIN
  4.  
  5. TIMEDO %1 %2 %3 %4 %5 %6
  6. IF ERRORLEVEL 6 GOTO Action6
  7. IF ERRORLEVEL 5 GOTO Action5
  8. IF ERRORLEVEL 4 GOTO Action4
  9. IF ERRORLEVEL 3 GOTO Action3
  10. IF ERRORLEVEL 2 GOTO Action2
  11. IF ERRORLEVEL 1 GOTO Action1
  12.  
  13. GOTO NoAction
  14.  
  15. :Action6
  16.     REM - Put funtion associated with ERRORLEVEL 6 here
  17.     @ECHO Level is set to 6
  18.     @ECHO Exit TIMEDO at %6 > RESULT6.TXT
  19.     @ECHO Perform Action Number 6
  20.     PAUSE
  21.     KILLTIME 10
  22.     GOTO BEGIN
  23.  
  24. :Action5
  25.     REM - Put funtion associated with ERRORLEVEL 5 here
  26.     @ECHO Level is set to 5
  27.     @ECHO Exit TIMEDO at %5 > RESULT5.TXT
  28.     @ECHO Perform Action Number 5
  29.     PAUSE
  30.     KILLTIME 10
  31.     GOTO BEGIN
  32.  
  33. :Action4
  34.     REM - Put funtion associated with ERRORLEVEL 4 here
  35.     @ECHO Level is set to 4
  36.     @ECHO Exit TIMEDO at %4 > RESULT4.TXT
  37.     @ECHO Perform Action Number 4
  38.     PAUSE
  39.     KILLTIME 10
  40.     GOTO BEGIN
  41.  
  42. :Action3
  43.     REM - Put funtion associated with ERRORLEVEL 3 here
  44.     @ECHO Level is set to 3
  45.     @ECHO Exit TIMEDO at %3 > RESULT3.TXT
  46.     @ECHO Perform Action Number 3
  47.     PAUSE
  48.     KILLTIME 10
  49.     GOTO BEGIN
  50.  
  51. :Action2
  52.     REM - Put funtion associated with ERRORLEVEL 2 here
  53.     @ECHO Level is set to 2
  54.     @ECHO Exit TIMEDO at %2 > RESULT2.TXT
  55.     @ECHO Perform Action Number 2
  56.     PAUSE
  57.     KILLTIME 10
  58.     GOTO BEGIN
  59.  
  60. :Action1
  61.     REM - Put funtion associated with ERRORLEVEL 1 here
  62.     @ECHO Level is set to 1
  63.     @ECHO Exit TIMEDO at %1 > RESULT1.TXT
  64.     @ECHO Perform Action Number 1
  65.     PAUSE
  66.     KILLTIME 10
  67.     GOTO BEGIN
  68.  
  69. :NoAction
  70.     REM - Put Message associated with EXIT on ESCape or INVALID Params Here
  71.     @ECHO  
  72.     @ECHO  
  73.     @ECHO ESCape was pressed or no TIME TRIGGER was provided
  74.     @ECHO  
  75.     @ECHO These triggers were set -
  76.     @ECHO  
  77.     @ECHO  %1
  78.     @ECHO  %2
  79.     @ECHO  %3
  80.     @ECHO  %4
  81.     @ECHO  %5
  82.     @ECHO  %6
  83. :END
  84.