I am trying to return a success/error code using Environment.Exit function in console application. (0 for success, 1 for error). Now i want to capture this return code in vbscript and display the return code (e.g. WScript.Echo(returnCode)).
Does anyone know if this can be done?
Thanks
Launching other programs from a script.