Link to home
Start Free TrialLog in
Avatar of trims30
trims30

asked on

Capturing DOS ErrorLevel after Shell

I have VB program that shells out to a DOS app synchronously via my ShellWait routine to perform some DOS program functions.  If an error occurs in the dos program it returns a DOS ErrorLevel.

Is there any way to capture this status in my VB Program?

I am using a ShellAndWait function to create a Process, Wait for it to finish and then close the Process.

Lee
ASKER CERTIFIED SOLUTION
Avatar of mcrider
mcrider

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of trims30
trims30

ASKER

Thank You Thank You Thank You

It works like a champ!

Lee
You're welcome!  Glad I could help!


Cheers!®©