C#判断进程是否开启

System.Diagnostics.Process[] processList = System.Diagnostics.Process.GetProcesses();
            foreach (System.Diagnostics.Process process in processList)
            {
                if (process.ProcessName == "abc.exe")
                {
                    return true;
                }
            }

posted @ 2011-01-31 15:48  Jack Tang  阅读(2148)  评论(0编辑  收藏  举报