Now that I know it's not possible to do what I wanted, I can work around this without a problem. I'll just scan the output of the .exe to determine whether it appears to have failed or not. Thanks to everyone for the info.