System.Diagnostics.Process[] processList = System.Diagnostics.Process.GetProcesses();
foreach (System.Diagnostics.Process process in processList)
{
if (process.ProcessName.ToString() == "CrystalMines")
{
MessageBox.Show("Y");
//process.Kill(); //结束进程
timer.Stop();
}
}
CrystalMines是进程名称不需要exe
文章由爱资料原创本文地址:https://www.apizl.com/archives/view-526-1.html,转载请以链接形式标明本文地址!
CrystalMines是进程名称不需要exe
关键字词: