I have a batch file that calls a VBscript file. I have an error handling routine in the .vbs and I want to get pass this value from the .vbs back to the batch file. Cna someone please explain how this can be accomplished?
Thanks for the reply.
If I put WScript.Quit myErrorLevel in my vbs, how do I get that value in my batch? What I'm thinking is that I run my vbs with On Error Resume Next doing my error handling. Then I pass a return code to the batch. If the return code is not good then I take action in the batch...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.