I am writing a script that calls another script. The script works fine but if the called script does not work correctly it will throw an error and than the calling script will continue to run. I wan the calling script to somehow throw an error if one of the called scripts produces and error
I call the script using the wscript.shell and calling the .run method. For example
test.run "cscript myscript.vbs",1,true
Does anyone have an idea of how I could get the calling script to notice if the called script produces and error? If I do not make changes to the script if the called script throws and error I will still get a successful change from my calling script. Thanks
I call the script using the wscript.shell and calling the .run method. For example
test.run "cscript myscript.vbs",1,true
Does anyone have an idea of how I could get the calling script to notice if the called script produces and error? If I do not make changes to the script if the called script throws and error I will still get a successful change from my calling script. Thanks