I am looking to standardize the exiting of all my scripts by creating a sub that among other things will update the log file, then exit the script.
When I want to exit the script, which can happen in various locations, I want to call the "subExit". Currently, in main, I just have the "exit sub" command.
The VBScript command WScript.Quit does not work, and executing "exit sub" in subExit just puts me back to the main sub.
Is there a way to make WScript work, or is there some HS exit command I am missing?
Thanks for all...
Richard
When I want to exit the script, which can happen in various locations, I want to call the "subExit". Currently, in main, I just have the "exit sub" command.
The VBScript command WScript.Quit does not work, and executing "exit sub" in subExit just puts me back to the main sub.
Is there a way to make WScript work, or is there some HS exit command I am missing?
Thanks for all...
Richard
Comment