![]() |
|
[.NET] Display WiFi Networks in VB.net - Printable Version +- Hack Forums (https://hackforums.net) +-- Forum: Tech (https://hackforums.net/forumdisplay.php?fid=444) +--- Forum: Coding (https://hackforums.net/forumdisplay.php?fid=151) +---- Forum: Software Development (https://hackforums.net/forumdisplay.php?fid=118) +---- Thread: [.NET] Display WiFi Networks in VB.net (/showthread.php?tid=5104230) |
Display WiFi Networks in VB.net - Tɦɛ Alex - Dec 22, 2015 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: Code Public Sub ScanNetworks()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 Code netsh wlan>show networksAll 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! * - Mouse❤️ - Dec 22, 2015 Well you just loop with String.IndexOf("SSID",lastLocation) and read until the new line, until you run out of SSIDs... * - Tɦɛ Alex - Dec 22, 2015 Disregard this thread. I found a Native WiFi API that did exactly what I needed. /Locked |