Category : BASIC Source Code
Archive   : ERRLVLM.ZIP
Filename : BASEXIT.BAS

 
Output of file : BASEXIT.BAS contained in archive : ERRLVLM.ZIP
DECLARE SUB cexit ALIAS "_exit" (BYVAL ErrLevel%)
DECLARE SUB ExitLevel (ErrLevel%)

' the following is the demo portion of the code

Input "Exit with what ERRORLEVEL: ", errorlevel%
CALL ExitLevel(errorlevel%)
PRINT "Just to prove we never get past the exit... this shouldn't print"

' end of demo portion of code.


' the subroutine you CALL and pass an errorlevel to.
' this in turn CALLs the C function contained in CEXIT.OBJ

SUB ExitLevel (ErrLevel%)

CLOSE
CALL cexit(ErrLevel%)

END SUB



  3 Responses to “Category : BASIC Source Code
Archive   : ERRLVLM.ZIP
Filename : BASEXIT.BAS

  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/