Process[] processes1 = Process.GetProcessesByName("XXX.exe"); //xxx表示项目名
if (processes1.Length<1)
{
OpenExe.StartProcess("XXX.exe", Application.StartupPath + @"\XXX.exe");
}
时间: 2024-11-05 19:36:40
Process[] processes1 = Process.GetProcessesByName("XXX.exe"); //xxx表示项目名
if (processes1.Length<1)
{
OpenExe.StartProcess("XXX.exe", Application.StartupPath + @"\XXX.exe");
}