Hey guys
I'm wanting to display wireless networks in a VB.net list box but only their SSID names.
I've found that 'netsh wlan show networks' is promising an I am executing it like this:
Problem is netsh will also bring a lot of useless information that I not required for the program I am making. At this point, I'm kind of stumped.
Anyone have any ideas how I can retrieve only the SSID and nothing else?
I've found some resources online about using Substrings to read to the end of a string. Below I'll provide as much information as I can.
This is the output from netsh wlan show networks
All I want is:
Obviously I need it too loop through so it will get SSID 1, 2, 3 etc...
Any ideas?
Thanks!
I'm wanting to display wireless networks in a VB.net list box but only their SSID names.
I've found that 'netsh wlan show networks' is promising an I am executing it like this:
Code
Public Sub ScanNetworks()
Dim output As String
Dim proc As New Process()
proc.StartInfo.CreateNoWindow = True
proc.StartInfo.FileName = "netsh"
proc.StartInfo.Arguments = "wlan show networks mode=bssid"
proc.StartInfo.RedirectStandardOutput = True
proc.StartInfo.UseShellExecute = False
' required for the Redirect setting above Process.Start(proc);
proc.Start()
output = proc.StandardOutput.ReadToEnd()
MsgBox(output)
End SubProblem is netsh will also bring a lot of useless information that I not required for the program I am making. At this point, I'm kind of stumped.
Anyone have any ideas how I can retrieve only the SSID and nothing else?
I've found some resources online about using Substrings to read to the end of a string. Below I'll provide as much information as I can.
This is the output from netsh wlan show networks
Code
netsh wlan>show networks
Interface name : Wireless Network Connection
There are 2 networks currently visible.
SSID 1 : Jackks Room
Network type : Infrastructure
Authentication : WPA2-Personal
Encryption : TKIPAll I want is:
Code
SSID 1 : Jackks RoomObviously I need it too loop through so it will get SSID 1, 2, 3 etc...
Any ideas?
Thanks!
