'=========================================================================== ' Subject: EXITING WITH ERRORLEVEL Date: 08-04-92 (16:13) ' Author: Joey Shaw Code: QB, PDS ' Origin: Load with QB /LQB Packet: DOS.ABC '=========================================================================== '> Sure is! It's REAL simple. All you have to do is declare a sub... 'Ohhh... '> DECLARE SUB ExitWithErrLvl ALIAS "_Exit" (BYVAL ErrorLevel%) 'Ok.... '> There thats it. Now to exit with an errorlevel just do this. '> ExitWithErrLvl 5 '> That exits with errorlevel 5! See, pretty easy huh! See ya! 'Yeah, tell me about it! Thanx