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
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
You're welcome! Glad I could help!
Cheers!®©
Cheers!®©
ASKER
It works like a champ!
Lee