C#检测进程运行状态


    class Program
    {
        static void Main(string[] args)
        {
            Process[] processes = Process.GetProcesses();


            foreach (Process process in processes)
            {
                Console.WriteLine("Process Name: {0}, Responding: {1}", process.ProcessName, process.Responding);
            }


            Console.Write("press enter");
            Console.ReadLine();
        }
    }


转自 http://stackoverflow.com/questions/320645/check-status-of-process

你可能感兴趣的:(C#检测进程运行状态)