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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top