home *** CD-ROM | disk | FTP | other *** search
/ Monster Media 1994 #1 / monster.zip / monster / PROG_BAS / EXITCODE.ZIP / BATCH.BAT next >
DOS Batch File  |  1994-01-19  |  2KB  |  91 lines

  1. @echo off
  2. cls
  3. if not exist exitcode.exe goto Missing
  4. call exitcode.exe
  5.  
  6. if errorlevel 10 if not errorlevel 11 goto Ten
  7. if errorlevel 9 if not errorlevel 10 goto Nine
  8. if errorlevel 8 if not errorlevel 9 goto Eight
  9. if errorlevel 7 if not errorlevel 8 goto Seven
  10. if errorlevel 6 if not errorlevel 7 goto Six
  11. if errorlevel 5 if not errorlevel 6 goto Five
  12. if errorlevel 4 if not errorlevel 5 goto Four
  13. if errorlevel 3 if not errorlevel 4 goto Three
  14. if errorlevel 2 if not errorlevel 3 goto Two
  15. if errorlevel 1 if not errorlevel 2 goto One
  16. if errorlevel 0 if not errorlevel 1 goto Zero
  17.  
  18. goto End
  19. :Ten
  20. echo.
  21. echo                            ERRORLEVEL 10
  22. echo 
  23. goto End
  24.  
  25. :Nine
  26. echo.
  27. echo                            ERRORLEVEL 9
  28. echo 
  29. goto End
  30.  
  31. :Eight
  32. echo.
  33. echo                            ERRORLEVEL 8
  34. echo 
  35. goto End
  36.  
  37. :Seven
  38. echo.
  39. echo                            ERRORLEVEL 7
  40. echo 
  41. goto End
  42.  
  43. :Six
  44. echo.
  45. echo                            ERRORLEVEL 6
  46. echo 
  47. goto End
  48.  
  49. :Five
  50. echo.
  51. echo                            ERRORLEVEL 5
  52. echo 
  53. goto End
  54.  
  55. :Four
  56. echo.
  57. echo                            ERRORLEVEL 4
  58. echo 
  59. goto End
  60.  
  61. :Three
  62. echo.
  63. echo                            ERRORLEVEL 3
  64. echo 
  65. goto End
  66.  
  67. :Two
  68. echo.
  69. echo                            ERRORLEVEL 2
  70. echo 
  71. goto End
  72.  
  73. :One
  74. echo.
  75. echo                            ERRORLEVEL 1
  76. echo 
  77. goto End
  78.  
  79. :Zero
  80. echo.
  81. echo                            ERRORLEVEL 0
  82. echo 
  83. goto End
  84.  
  85. :Missing
  86. echo Need to have EXITCODE.EXE is this directory to run this batch file
  87. echo Ending BATCH.BAT....
  88. echo 
  89. pause
  90. :End
  91.