home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Shareware Overload
/
ShartewareOverload.cdr
/
progm
/
xbatch.zip
/
DD5.BAT
< prev
next >
Wrap
DOS Batch File
|
1988-09-14
|
1KB
|
30 lines
BOX from 4 10 to 20 70 colors %1 %2 single
DISPLAY "The CHKENVIR command checks whether an environment variable is defined." line 22 center clear
DISPLAY "Example: CHKENVIR path defined" line 24 colors %4 %5 clear
CHKENVIR path defined
if errorlevel == 1 goto h1
DISPLAY "PATH is defined!" line 14 center
goto next4
:h1
DISPLAY "PATH is not defined!" line 14 center
goto next4
:next4
DISPLAY " Press any key. " at 12 28 colors %3 %2
GETCHAR noecho
BOX from 4 10 to 20 70 colors %1 %2 single
DISPLAY "You can also check if an environment variable has a specific value." line 22 center clear
DISPLAY "Example: CHKENVIR comspec equals c:\command.com" line 24 colors %4 %5 clear
CHKENVIR comspec equals c:\command.com
if errorlevel == 1 goto i1
DISPLAY "COMSPEC is set to C:\COMMAND.COM!" line 14 center
goto next5
:i1
DISPLAY "COMSPEC is not set to C:\COMMAND.COM!" line 14 center
goto next5
:next5
DISPLAY " Press any key. " colors %3 %2 line 12 center
GETCHAR noecho
dd6 %1 %2 %3 %4 %5