110,533
社区成员
发帖
与我相关
我的任务
分享
System.Diagnostics.Process.GetProcessById(id);//请问这个id是如何获取,要程序自身的进程id
foreach (System.Diagnostics.Process p in killprocess)
{
p.Kill();
}
Process p = Process.GetCurrentProcess();
p.Id
System.Diagnostics.Process.GetCurrentProcess().Id