如何获取另一台计算机的任务管理器的运行程序 [英] How to get running programs of task manager of another computer
问题描述
有没有办法从另一台计算机上获取任务管理器的运行过程?
我想在另一台电脑上运行所有正在运行的程序。
我有什么尝试过:
我尝试使用以下代码,但它适用于所有联网计算机
//使用机器名称获取在特定计算机上运行的所有记事本实例。
处理[] remoteByName = Process.GetProcessesByName(notepad,anotherComputerName);
//使用IP地址获取特定计算机上运行的所有记事本实例。
处理[] ipByName = Process.GetProcessesByName(notepad, 172.168.40.12);
Is there any way to get the running process of task manager from another computer?
I want to get all the running process on another computer.
What I have tried:
I have tried with the following code but it is working for all networked computers
// Get all instances of Notepad running on the specific computer, using machine name.
Process[] remoteByName = Process.GetProcessesByName("notepad","anotherComputerName");
// Get all instances of Notepad running on the specific computer, using IP address.
Process[] ipByName = Process.GetProcessesByName("notepad", "172.168.40.12");
推荐答案
您可以创建一个类似任务管理器的服务器应用程序(使用 Windows API
,请参阅 Karl E. Peterson的经典VB代码:TaskList [ ^ ])表情机器,然后从本地机器查询。
You could create a Task Manager-like server application (using Windows API
, see, for instance Karl E. Peterson's Classic VB Code: TaskList[^]) on the remote machine and then query it from the local one.
这篇关于如何获取另一台计算机的任务管理器的运行程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!