How to catch Windows shell script errors launched from VBA code?

Viewed 13664

I'm launching a batch script from VBA with the Shell function:

myRes = Shell("myScript.cmd")

Is there a way to know if it runs successfully or if there were execution errors?

2 Answers
Related