i have loop and in loop my program spawn new process and new process is singleton so other process cant start
foreach (var i in files)
{
System.Diagnostics.Process.Start("c:\\Telock\\Telock.exe", " -S" + i.ToString());
}
how start 2 after 1 finish and …
Why don’t you look up
Processclass in MSDN (after all, you ARE using it)? If you had done that, you would have found theWaitForExitmethod.Take for habit to use more descriptive variable names (
idoesn’t really say anything, especially not for a filename).