Get devices from "Network" [closed]
Want to improve this question? Update the question so it focuses on o开发者_StackOverflow社区ne problem only by editing this post.
Closed 7 years ago.
Improve this questionI have been searching for about 2 hours now without any luck, maybe I am searching for the wrong things... But, Here's what I need:
When you go to "Computer" in the Start Menu of Windows (Vista and 7), and you then click on "Network" on the left hand side, you see a couple of devices. I need to get the computers from that list of devices in .NET (C# or VB, doesn't matter.). Specifically, I need thier ADDRESS, like \\HOME-PC and so forth.
I have no clue on how to do this. I have looked through the object browser, and on Google, but no luck.
I think what you're trying to do is query the WorkGroup for other computers, to do so you could use the code mentioned here
see Retreiving a list of network computer names, i guess it is what you are looking for
精彩评论