|
-
Aug 15th, 2011, 01:45 PM
#1
Thread Starter
Junior Member
Output of Array
To whom it may concern,
In my application, the user clicks a single button and the program displays each network adapter description into a message box and then gets all the ip info for the workstation and places it into a text file and opens that text for reading. What I would really like for it to do would be to display all the network adapters into a single messagebox instead of messagebox for every adapter like it is currently doing. Here is the code I have on that button. Let me know if anyone needs more info or has any questions:
Dim nics As NetworkInterface() = NetworkInterface.GetAllNetworkInterfaces()
If nics Is Nothing OrElse nics.Length < 1 Then
MessageBox.Show("No network interfaces found.")
Else : Call Shell("cmd /c ipconfig /all >c:\ipconfig.txt")
For Each adapter As NetworkInterface In nics
MessageBox.Show(adapter.Description)
Next
System.Threading.Thread.Sleep(500)
Process.Start("c:\ipconfig.txt")
Exit Sub
End If
Thanks in advance,
Scott
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|