//使用前需要引用 using System.Diagnostics; var processList = Process.GetProcesses().ToList(); 转载于:https://www.cnblogs.com/zsqdh/p/9023784.html