如何制作将在Lan或无线网络上列出计算机的VB程序 [英] How Do I Make a VB Program That Will List Computers On a Lan or Wireless Network
问题描述
我想再次回到VB编码。并希望创建类似IP扫描仪的东西。我用google搜索其他基本信息,比如我的内部/外部IP地址。但不确定如何列出计算机。我已经浏览了无穷无尽的线索。人们都发布了代码,但是当我尝试那些东西时,没有任何作用。似乎VB支持正在消亡。如果有人能指出我正确的方向,并提供示例脚本或工作解决方案,那将不胜感激。
I am trying to get back into VB Coding again. And would like to create something like a IP Scanner. I've kind of googled my way around getting other basic information, like my Internal/External Ip address. But not sure how to list computer ones. I have browsed endless threads on this. People all post there code, but when i try out there stuff nothing works. It seems the VB support is dying out. If anybody can point me in the right direction, and provide an example script, or a working solution out there, that would be appreciated.
推荐答案
不确定是不是偶然发现这个 [ ^ ]。
本文使用NetServerEnum
函数来获取工作站列表。
Not sure if stumbled upon this[^].
The article usesNetServerEnum
function to get the list of work stations.
FIrst总之,请阅读我对这个问题的评论。
Google [ ^ ]。
FIrst of all, please read my comment to the question.
There is tons of examples on Google[^].
这篇关于如何制作将在Lan或无线网络上列出计算机的VB程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!