且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何在我们的网络中注册所有已打开的计算机?

更新时间:2021-09-20 22:42:10

我会看看NetAPI32.dll NetServerEnum函数(需要p /调用和关心在64位机器上运行)



结账

使用C#重新获取网络计算机名称列表 [ ^ ] [/ edit]



I'd be looking at the NetAPI32.dll NetServerEnum function (requires p/invoke and care running on 64bit machines)

[edit] check out
Retreiving a list of network computer names using C#[^] [/edit]

[edit 2]
IPAddress[] ipAddresses = Dns.GetHostAddresses(computerName);

[/ edit 2]



'g'

[/edit 2]

'g'


我需要一个完成的代码,因为我不是编码器。如果你能在这里放一些示例代码,那就太好了。我只需要一个扫描网络运行计算机的程序,并将收集到的数据保存在文本文件中。
I need a finished code because im not a coder. It would be nice if you could put some example code in here. I just need a program that scans the network for running computers and saves the collected data in a textfile.


那你怎么做?



谢谢
How would you do it then?

Thanks