home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Monster Media 1994 #1
/
monster.zip
/
monster
/
UTILS1
/
BATCHES.ZIP
/
DEMO.BAT
next >
Wrap
DOS Batch File
|
1994-01-17
|
1KB
|
40 lines
@ECHO OFF
CLS
ECHO.
ECHO THIS BATCH FILE WILL SHOW EXAMPLES OF HOW TO USE
ECHO THE BATCH UTILITIES.
ECHO.
ECHO HERE IS AN EXAMPLE OF TIMED PAUSE PROGRAM WITH NO TIME.
ECHO T-PAUSE.EXE was created using Microsoft QuickBasic 4.5.
ECHO Command Line: T-PAUSE
ECHO.
T-PAUSE
ECHO.
ECHO HERE IS AN EXAMPLE OF TIMED PAUSE PROGRAM WITH A SPECIFIED TIME.
ECHO T-PAUSE.EXE was created using Microsoft QuickBasic 4.5.
ECHO Command Line: T-PAUSE 25
ECHO AFTER THE COUNTDOWN, YOU WILL SEE THE SCREEN SAVER PROGRAM.
ECHO PRESS ANY KEY TO STOP THE SCREEN SAVER.
ECHO Command Line: SAVER
T-PAUSE 25
SAVER
ECHO.
ECHO THE KEY# PROGRAM WILL WAIT FOR A KEY TO BE PRESSED THEN PUT THE ASCII
ECHO VALUE OF THE KEY IN THE DOS ERRORLEVEL.
ECHO Command Line: KEY#
ECHO THE FILE SHOWERR.BAT WILL REPORT THE ERRORLEVEL TO THE SCREEN AND
ECHO SET THE VARIABLE 'ERR' TO THAT NUMBER.
ECHO Command Line: SHOWERR
ECHO.
ECHO THESE TWO PROGRAMS SHOULD BE USED LIKE THIS.
ECHO.
ECHO Is this a batch file (Y or N)?
KEY#
CALL SHOWERR Checking_the_ASCII_Value
ECHO The key you pressed has an ascii value of %ERR%.
SET ERR=
ECHO.
ECHO THIS CONCLUDES THE DEMONSTRATION.
T-PAUSE