home *** CD-ROM | disk | FTP | other *** search
/ Big Blue Disk 29 / bbd29.zip / BAT.BAT < prev    next >
DOS Batch File  |  1988-09-16  |  1KB  |  45 lines

  1. : Error level demo file
  2. VIDCHK
  3. IF ERRORLEVEL 99 GOTO END
  4. IF ERRORLEVEL 4 GOTO ER4
  5. IF ERRORLEVEL 3 GOTO ER3
  6. IF ERRORLEVEL 2 GOTO ER2
  7. IF ERRORLEVEL 1 GOTO ER1
  8. ECHO error level returned was 0
  9. REM  MDA dependent code appears here
  10. GOTO END
  11. :ER1
  12. ECHO error level returned was 1
  13. REM  CGA dependent code appears here
  14. GOTO END
  15. :ER2
  16. ECHO error level returned was 2
  17. REM  EGA color IRGB monitor detected
  18. GOTO EGAMEM
  19. :ER3
  20. ECHO error level returned was 3
  21. REM  EGA color with enhanced monitor detected
  22. GOTO EGAMEM
  23. :ER4
  24. ECHO error level returned was 4
  25. REM EGA monochrome detected
  26. :EGAMEM
  27. EGAMEM
  28. IF ERRORLEVEL 2 GOTO EGABIG
  29. ECHO EGA 64K or less detected
  30. REM  Limited ega code appears here
  31. GOTO END
  32. :EGABIG
  33. ECHO EGA with more than 64k detected
  34. REM  EGA with more than 64k code appears here
  35. :END
  36. t code appears here
  37. GOTO END
  38. :ER2
  39. ECHO error level returned was 2
  40. REM  EGA color IRGB monitor detected
  41. GOTO EGAMEM
  42. :ER3
  43. ECHO error level returned was 3
  44. REM  EGA color with enhanced monitor detected
  45. GOTO