home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Hall of Fame
/
HallofFameCDROM.cdr
/
pcmag
/
v9n10.lzh
/
DEBUGBAT.BAT
< prev
next >
Wrap
DOS Batch File
|
1990-04-04
|
1KB
|
39 lines
::::: DEBUGBAT.BAT
@ECHO OFF
REM The start of the DEBUGBAT.BAT file.
IF '%DEBUG-IT%'=='Yes' GOTO debug-a
SET ECHO-IT=OFF
SET WHERE-TO=NUL
GOTO debug-b
:debug-a
SET ECHO-IT=ON
SET WHERE-TO=CON
:debug-b
@ECHO %ECHO-IT%
::::: Above lines set up the easy-debugging-info potential.
::::: Put the body of the batch file here.
ECHO Kilroy was here. Pat Paulsen for president.
::::: For debugging, it might contain statements such as the following:
copy a:skeleton.bat b:autoexec.bat > %WHERE-TO%
IF NOT '%DEBUG-IT%'=='Yes' GOTO continue
::::: Get here when DEBUG-IT = Yes so can gather some debugging info.
DIR B:*.BAT
PAUSE IF OK, continue. Or, use Ctrl-Break to quit at this point.
:continue
::::: Continue on with the batch file, and reach a place where you
::::: might want to obtain some more debugging information.
IF '%DEBUG-IT%'=='Yes' CALL GETCOMND.BAT
::::: Continue on with the batch file.
::::: Following lines "erase" the environment variables.
SET DEBUG-IT=
SET ECHO-IT=
SET WHERE-TO=
REM The end of the DEBUGBAT.BAT file.