I have a windows form
application and a command prompt
exe. I'm executing the command prompt whithin win form button click
ProcessStartInfo info = new ProcessStartInfo();
info.FileName = "ConsoleApplication2.exe";
Process.Start(info);
And i have some operation whtin button click event which is executed after calling the exe. But i will only need to perform if there is no exception thrown from command prompt exe. Basically what is need is to bubble up the exception from exe to win from. I tried throwing the exception but since both exe and win from are two different application instances exception is not thrown back to caller. Is there any way to achieve this ?