Vb.net get batch file error?????

macros14

New member
Joined
Dec 6, 2004
Messages
1
Programming Experience
1-3
I have a vb.net that is shelling and executing a batch file. I need to know if the batch file failed and went into the the error part of the batch file. In the error part of the batch file i have exit 1 which I think would give me a exit code of one. How do I get shell to return if there was a error in the batch file that I shelled to???
 
You could redirect the batch files output to a text file then read the file in your prog.
 
Back
Top