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
 
Back
Top