When does an process end?

rfazendeiro

Centurion
Joined
Mar 8, 2004
Messages
110
hi ti all,

I'm currently building an application that is going the execute an external application in batch mode.

[csharp]
for (i=0;i < 10; i++) {
System.Diagnostics.Process.Start(sAppPath,sArgs);
}
[/csharp]

As you can see i need to execute this external application lots of times, but i only want the next series to begin when the other finnishes.

how can i do that? can anyone help me on this?
 
Just a recommendation: you could create a second thread to wait for a process to end in order to not freeze up your app.
 
Back
Top