How do I return an exit code from a VBScript console application May 26, 2023 by Tarik Try: WScript.Quit n Where n is the ERRORLEVEL you want to return