Retrieving all the machines in my network!
-
hi, can anyone please give me a hint of how can i retrieve all the Machines name and IPs in my network whether its a workgroub or domain. thanks in advance.
-
hi, can anyone please give me a hint of how can i retrieve all the Machines name and IPs in my network whether its a workgroub or domain. thanks in advance.
Hey! I had the same problem, i found this app here http://thecodeproject.com/vb/net/MyLanApp.asp just read the source
-
Hey! I had the same problem, i found this app here http://thecodeproject.com/vb/net/MyLanApp.asp just read the source
thanks that was really helpfull, but i think that this method only works when there is an Active Directory installed, is this right? so i need a generic way to retrieve the machines in the network even if it was a workgroup!!!
-
thanks that was really helpfull, but i think that this method only works when there is an Active Directory installed, is this right? so i need a generic way to retrieve the machines in the network even if it was a workgroup!!!
Basically what you'll need to do is use the DOS utility "net view". When you type it in the command prompt, it lists all computers on the network whether Active Directory is on or off. All you'll have to do in your app is to call the Shell using "net view" as a command and adding ">C:\myfile.txt" (this is the location where all the net view info will be stored). Just read the file from your app and parse the string to get the list. I've already seen several VB6 apps doing this and have tried it myself on WinXP and it works fine. Check out NetSend (VB6) here http://www.a1vbcode.com/download.asp?ID=2503 it does exactly what you need :cool:;)
-
Basically what you'll need to do is use the DOS utility "net view". When you type it in the command prompt, it lists all computers on the network whether Active Directory is on or off. All you'll have to do in your app is to call the Shell using "net view" as a command and adding ">C:\myfile.txt" (this is the location where all the net view info will be stored). Just read the file from your app and parse the string to get the list. I've already seen several VB6 apps doing this and have tried it myself on WinXP and it works fine. Check out NetSend (VB6) here http://www.a1vbcode.com/download.asp?ID=2503 it does exactly what you need :cool:;)
Thanks for your help this is exactly what i wanted.
-
hi, can anyone please give me a hint of how can i retrieve all the Machines name and IPs in my network whether its a workgroub or domain. thanks in advance.