列出并控制当前计算机/或远程计算机中的所有进程 [英] list and control all processes in current machine/ or remote machine

查看:73
本文介绍了列出并控制当前计算机/或远程计算机中的所有进程的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好,

Hello,

How do I find out an application to list and control all processes in current machine/ or remote machine?

推荐答案

using System.Diagnostics;

//...

void DoWhateverYouWantWithYourProcess(Process process) { /* some code */ }

//...

foreach (Process process in Process.GetProcesses())
    DoWhateverYouWantWithYourProcess(process);



还有一个重载的方法:
Process[] Process.GetProcesses(string machineName).



There is also an overloaded method:
Process[] Process.GetProcesses(string machineName).


请参见
http://csharptuning.blogspot.com/2007/05/getting- process-on-local-or-remote.html [ ^ ]

管理远程计算机上的进程 [ http://www.java2s.com/Tutorial/CSharp/0280__Development/Listingprocessesonaremotemachine.htm [ ^ ]
See
http://csharptuning.blogspot.com/2007/05/getting-processes-on-local-or-remote.html[^]

Manage Processes on Remote Machine[^]

http://www.java2s.com/Tutorial/CSharp/0280__Development/Listingprocessesonaremotemachine.htm[^]


这篇关于列出并控制当前计算机/或远程计算机中的所有进程的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆