home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Black Box 4
/
BlackBox.cdr
/
batch
/
timedo10.arj
/
RUNTIME.BAT
< prev
next >
Wrap
DOS Batch File
|
1992-03-14
|
2KB
|
84 lines
@ECHO OFF
:BEGIN
TIMEDO %1 %2 %3 %4 %5 %6
IF ERRORLEVEL 6 GOTO Action6
IF ERRORLEVEL 5 GOTO Action5
IF ERRORLEVEL 4 GOTO Action4
IF ERRORLEVEL 3 GOTO Action3
IF ERRORLEVEL 2 GOTO Action2
IF ERRORLEVEL 1 GOTO Action1
GOTO NoAction
:Action6
REM - Put funtion associated with ERRORLEVEL 6 here
@ECHO Level is set to 6
@ECHO Exit TIMEDO at %6 > RESULT6.TXT
@ECHO Perform Action Number 6
PAUSE
KILLTIME 10
GOTO BEGIN
:Action5
REM - Put funtion associated with ERRORLEVEL 5 here
@ECHO Level is set to 5
@ECHO Exit TIMEDO at %5 > RESULT5.TXT
@ECHO Perform Action Number 5
PAUSE
KILLTIME 10
GOTO BEGIN
:Action4
REM - Put funtion associated with ERRORLEVEL 4 here
@ECHO Level is set to 4
@ECHO Exit TIMEDO at %4 > RESULT4.TXT
@ECHO Perform Action Number 4
PAUSE
KILLTIME 10
GOTO BEGIN
:Action3
REM - Put funtion associated with ERRORLEVEL 3 here
@ECHO Level is set to 3
@ECHO Exit TIMEDO at %3 > RESULT3.TXT
@ECHO Perform Action Number 3
PAUSE
KILLTIME 10
GOTO BEGIN
:Action2
REM - Put funtion associated with ERRORLEVEL 2 here
@ECHO Level is set to 2
@ECHO Exit TIMEDO at %2 > RESULT2.TXT
@ECHO Perform Action Number 2
PAUSE
KILLTIME 10
GOTO BEGIN
:Action1
REM - Put funtion associated with ERRORLEVEL 1 here
@ECHO Level is set to 1
@ECHO Exit TIMEDO at %1 > RESULT1.TXT
@ECHO Perform Action Number 1
PAUSE
KILLTIME 10
GOTO BEGIN
:NoAction
REM - Put Message associated with EXIT on ESCape or INVALID Params Here
@ECHO
@ECHO
@ECHO ESCape was pressed or no TIME TRIGGER was provided
@ECHO
@ECHO These triggers were set -
@ECHO
@ECHO %1
@ECHO %2
@ECHO %3
@ECHO %4
@ECHO %5
@ECHO %6
:END