AT2k Design BBS Message Area
Casually read the BBS message area using an easy to use interface. Messages are categorized exactly like they are on the BBS. You may post new messages or reply to existing messages!

You are not logged in. Login here for full access privileges.

Previous Message | Next Message | Back to BAT Magic  <--  <--- Return to Home Page
   Local Database  BAT Magic   [131 / 250] RSS
 From   To   Subject   Date/Time 
Message   Visitor    ALL   Errorlevel Return   September 25, 1995
 7:54 PM *  

@ECHO OFF
:: To check and display the errorlevel returned by a program
:: Originally posted by PETER LOVELL
:: Origin: Kakadu Konnection - Darwin Multiline TBBS (3:850/111)

:start
if "%1"=="/?" goto usage
set n=
call %1 %2 %3 %4 %5 %6 %7 %8 %9
FOR %%A IN (0 1) DO IF ERRORLEVEL %%A00 SET N=%%A
FOR %%A IN (0 1 2 3 4 5 6 7 8 9) DO IF ERRORLEVEL %N%%%A0 SET N=%N%%%A
FOR %%A IN (0 1 2 3 4) DO IF ERRORLEVEL 2%%A0 SET N=2%%A
FOR %%A IN (0 1 2 3 4 5 6 7 8 9) DO IF ERRORLEVEL %N%%%A SET N=%N%%%A
FOR %%A IN (0 1 2 3 4 5) DO IF ERRORLEVEL 25%%A SET N=25%%A
ECHO ERRORLEVEL is %N%
set n=
goto end

:usage
echo.
echo To check and display the errorlevel returned by a program
echo Type %0 followed by:
echo    Program_Name Parameters ... ...
echo.
echo You may also type %0 all by itself, after running any program.
echo.

:END


___ Blue Wave/QWK v2.12
  Show ANSI Codes | Hide BBCodes | Show Color Codes | Hide Encoding | Hide HTML Tags | Show Routing
Previous Message | Next Message | Back to BAT Magic  <--  <--- Return to Home Page

VADV-PHP
Execution Time: 0.0138 seconds

If you experience any problems with this website or need help, contact the webmaster.
VADV-PHP Copyright © 2002-2024 Steve Winn, Aspect Technologies. All Rights Reserved.
Virtual Advanced Copyright © 1995-1997 Roland De Graaf.
v2.1.241108