xxxxxxxxxx
System.Diagnostics.Process pProcess = new System.Diagnostics.Process();
pProcess.StartInfo.FileName = "c:\\analyze.exe"
pProcess.StartInfo.Arguments = inputPath + " " + outputPath;
pProcess.Start();
pProcess.WaitForExit();
pProcess.Close();
xxxxxxxxxx
ConsoleColor color = Console.ForegroundColor;
ProcessStartInfo startinfo = new ProcessStartInfo(nameProgramB);
startinfo.CreateNoWindow = false;
startinfo.UseShellExecute = false;
Process p = Process.Start(startinfo);
p.WaitForExit();
Console.ForegroundColor = color;