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???