在c#中的控制台应用程序中给出访问局域网中计算机所有正在运行的进程的代码 [英] give the code of access all running process of computers in lan network in console application in c#

查看:103
本文介绍了在c#中的控制台应用程序中给出访问局域网中计算机所有正在运行的进程的代码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我找到所有以lan连接的计算机名称.我想连接到该lan连接的计算机的所有IP地址,然后访问当时在该计算机上运行的所有进程.使用code

i find all computers name which are connected in lan.I want to all ip address of that lan connected computers & we access all processes are running at that time on that computers. attach code.give idea with coding

推荐答案

附加code.give想法,那么,您实际上无法访问"在远程计算机上运行的进程,但是可以获得它们的列表(而且可能受到权限的限制).

Well, you can''t really "access" the processes running ona remote machine, but you can get a list of them (and this is probably restricted with permissions).

Process[] processList = Process.GetProcesses("machine name");



用一个 "."机器名称将获得运行代码的机器上的进程列表.

要查找给定LAN上的所有计算机,请查看nMap实用程序.它可能具有一个命令行版本,可以产生您可以解析的输出.

http://nmap.org/ [ ^ ]



Using a "." for the machine name will get a list of processes on the machine the code is running on.

To find all machines on a given LAN, look at the nMap utility. It might have a commandline version that produces output you could parse.

http://nmap.org/[^]


这篇关于在c#中的控制台应用程序中给出访问局域网中计算机所有正在运行的进程的代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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