标签:
Process[] processes1 = Process.GetProcessesByName("XXX.exe"); //xxx表示项目名
if (processes1.Length<1)
{
OpenExe.StartProcess("XXX.exe", Application.StartupPath + @"\XXX.exe");
}
标签:
原文地址:http://www.cnblogs.com/yanglovezhi/p/5328491.html