Category : C Source Code
Archive   : CENVID17.ZIP
Filename : ERRLEV.BAT

 
Output of file : ERRLEV.BAT contained in archive : CENVID17.ZIP
@echo off
REM ************************************************************************
REM *** ERRLEV.BAT - Call a program, passing up to 8 parameters, and ***
REM *** set the ERRLEV environment variable from the return ***
REM *** Code of that program. Also return with ERRORLEVEL ***
REM *** set as if the program was run directly from the ***
REM *** command prompt or from a batch file. ***
REM ************************************************************************

if not "%1" == "" GOTO RUN_ERRLEV

ECHO ERRLEV - Call a program, passing up to 8 paramters. Sets ERRLEV environment
ECHO variable to the value returned. Also set ERRORLEVEL for batch file.
ECHO Example: ERRLEV CHKDSK C:

:RUN_ERRLEV
CEnvi return(ERRLEV = spawn(P_WAIT,`%1 %2 %3 %4 %5 %6 %7 %8 %9`));


  3 Responses to “Category : C Source Code
Archive   : CENVID17.ZIP
Filename : ERRLEV.BAT

  1. Very nice! Thank you for this wonderful archive. I wonder why I found it only now. Long live the BBS file archives!

  2. This is so awesome! 😀 I’d be cool if you could download an entire archive of this at once, though.

  3. But one thing that puzzles me is the “mtswslnkmcjklsdlsbdmMICROSOFT” string. There is an article about it here. It is definitely worth a read: http://www.os2museum.com/wp/mtswslnk/