start a program in a vb.net program

  • Thread starter Thread starter andrews
  • Start date Start date
A

andrews

With System.Diagnostics.Process.Start(ProgramPath) I can start a program X
in a vb.net program
Can I also dedect and how in this vb.net program that X is closed?
Thanks for any response
 
Yes. Look athttp://msdn2.microsoft.com/en-us/library/system.diagnostics.process.e....

You can wait till the process finishes its work and finishes using:

yourprocess.WaitForExit()
 
Back
Top