Execute external program synchronously

  • Thread starter Thread starter SC
  • Start date Start date
S

SC

Hi,

I want tu run an external program from a c# program but i need to wait until
the external program ends. How can i do that? I try Process.Start but it do
asynchronously... Any help?

Bye
 
Process.Start returns a Process object. The Process object has an overloaded
method called WaitForExit. The first overload will block your process untill
the spawned process has finished. The second overload allows you specifiy
how long to wait before returning control to your process.

Regards
Lee
 

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