C#调用exe
using System.Diagnostics;
static void Main(string[] args)
{
Process myProcess = Process.Start("c:\\test\\DIY.exe");
while (!myProcess.HasExited)
{
Console.WriteLine("still running");
Thread.Sleep(1000);
}
Console.WriteLine("QUIT");
}