Starting an exe from a program

  • Thread starter Thread starter greg
  • Start date Start date
G

greg

Hi everyone,

I have been having some problems with the following:

Using System.Diagnostics, I am starting several exe files from withing
Program.exe. Is there a way I can pause the execution of the rest of
Program.exe until the external processes finish. The only thing I can
think of is writing to a file
but I was hoping to find a more elegant solution. Currently I am using
threads and more specifically sleep() to "schedule" the execution of
code.

Any ideas will be highly appreciated?

Thanks,
Greg
 
Try Process.WaitForExit Method () = Instructs the Process component
to wait indefinitely for the associated process to exit
 
Back
Top