C#获取当前所有进程名 foreach(System.Diagnostics.Process p in System.Diagnostics.Process.GetProcesses()) { MessageBox.Show(p.ProcessName); }