home *** CD-ROM | disk | FTP | other *** search
- @echo off
- cls
- if not exist exitcode.exe goto Missing
- call exit2.exe
-
- if errorlevel 10 if not errorlevel 11 goto Ten
- if errorlevel 9 if not errorlevel 10 goto Nine
- if errorlevel 8 if not errorlevel 9 goto Eight
- if errorlevel 7 if not errorlevel 8 goto Seven
- if errorlevel 6 if not errorlevel 7 goto Six
- if errorlevel 5 if not errorlevel 6 goto Five
- if errorlevel 4 if not errorlevel 5 goto Four
- if errorlevel 3 if not errorlevel 4 goto Three
- if errorlevel 2 if not errorlevel 3 goto Two
- if errorlevel 1 if not errorlevel 2 goto One
- if errorlevel 0 if not errorlevel 1 goto Zero
-
- goto End
- :Ten
- echo.
- echo ERRORLEVEL 10
- echo
- goto End
-
- :Nine
- echo.
- echo ERRORLEVEL 9
- echo
- goto End
-
- :Eight
- echo.
- echo ERRORLEVEL 8
- echo
- goto End
-
- :Seven
- echo.
- echo ERRORLEVEL 7
- echo
- goto End
-
- :Six
- echo.
- echo ERRORLEVEL 6
- echo
- goto End
-
- :Five
- echo.
- echo ERRORLEVEL 5
- echo
- goto End
-
- :Four
- echo.
- echo ERRORLEVEL 4
- echo
- goto End
-
- :Three
- echo.
- echo ERRORLEVEL 3
- echo
- goto End
-
- :Two
- echo.
- echo ERRORLEVEL 2
- echo
- goto End
-
- :One
- echo.
- echo ERRORLEVEL 1
- echo
- goto End
-
- :Zero
- echo.
- echo ERRORLEVEL 0
- echo
- goto End
-
- :Missing
- echo Need to have EXITCODE.EXE is this directory to run this batch file
- echo Ending BATCH.BAT....
- echo
- pause
- :End
-