detect runtime process
-
Dear All, I have to execute a java application from C-sharp, but I want to know, how can I detect whether the process is complete or not?
System.Diagnostics.Process.Start("/MySetup.jar", "untitled.xml");
the code I used as above. and I will have to do another function after the MySetup.jar is ended. Can anyone give me some hints? Thanks -
Dear All, I have to execute a java application from C-sharp, but I want to know, how can I detect whether the process is complete or not?
System.Diagnostics.Process.Start("/MySetup.jar", "untitled.xml");
the code I used as above. and I will have to do another function after the MySetup.jar is ended. Can anyone give me some hints? ThanksProcess process = Process.Start("/MySetup.jar", "untitled.xml");
process.WaitForExit();
anotherFunction();
-
Process process = Process.Start("/MySetup.jar", "untitled.xml");
process.WaitForExit();
anotherFunction();
Thanks so much stefan. Just have another question, do I need to call dispose or close after the process ended? e.g process.dispose(), process.Close(); And, it looks difficult to lock the original application after running this process. Because I don't want to let user do anything after popup this process.