System.Diagnostics.Process[] processList = System.Diagnostics.Process.GetProcesses();
foreach (System.Diagnostics.Process process in processList)
{
if (process.ProcessName == "abc.exe")
{
return true;
}
}
转载于:https://www.cnblogs.com/jacktang/articles/1948347.html