home *** CD-ROM | disk | FTP | other *** search
/ Shareware Overload / ShartewareOverload.cdr / progm / xbatch.zip / DD5.BAT < prev    next >
DOS Batch File  |  1988-09-14  |  1KB  |  30 lines

  1. BOX from 4 10 to 20 70 colors %1 %2 single
  2. DISPLAY "The CHKENVIR command checks whether an environment variable is defined." line 22 center clear
  3. DISPLAY "Example:  CHKENVIR path defined" line 24 colors %4 %5 clear
  4. CHKENVIR path defined
  5.   if errorlevel == 1  goto h1
  6.   DISPLAY "PATH is defined!" line 14 center
  7.   goto next4
  8. :h1
  9.   DISPLAY "PATH is not defined!" line 14 center
  10.   goto next4
  11. :next4
  12. DISPLAY "     Press any key.     " at 12 28 colors %3 %2
  13. GETCHAR noecho
  14.  
  15. BOX from 4 10 to 20 70 colors %1 %2 single
  16. DISPLAY "You can also check if an environment variable has a specific value." line 22 center clear
  17. DISPLAY "Example:  CHKENVIR comspec equals c:\command.com" line 24 colors %4 %5 clear
  18. CHKENVIR comspec equals c:\command.com
  19.   if errorlevel == 1  goto i1
  20.   DISPLAY "COMSPEC is set to C:\COMMAND.COM!" line 14 center
  21.   goto next5
  22. :i1
  23.   DISPLAY "COMSPEC is not set to C:\COMMAND.COM!" line 14 center
  24.   goto next5
  25. :next5
  26. DISPLAY "     Press any key.     " colors %3 %2 line 12 center
  27. GETCHAR noecho
  28.  
  29. dd6 %1 %2 %3 %4 %5
  30.