Hi,
I am using the following lines, but the process does not wait untill it closed.
foreach (FileInfo file in dir.GetFiles("*.csproj"))
{
Process theProcess = new Process();
theProcess.StartInfo = new ProcessStartInfo(file.FullName);
theProcess.StartInfo.Arguments = "";
theProcess.Start();
theProcess.WaitForExit();
}
Please let me know what should I did wrong.
Cheer.
|