如何使用 C# 代码从我的终端 (Windows-CE 5.0) 终止进程 Windows\MyProcc.exe?
最佳答案
首先通过给出正在运行的 exe 的名称找到进程并杀死它。使用 System.Diagnostics 命名空间。
Process[] Prs = Process.GetProcessesById(RunninExe);
if (Prs.Length > 0)
{
foreach (Process Prss in Prs)
{
Prss.Kill();
}
}
关于c# - 如何在 Windows-CE 中杀死进程?,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/7307998/