本文介绍了在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

推荐答案

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

11-01 06:42