Hi there! Not sure if anyone is interested in this, but this code gets all the available wifi networks on your computer. This is using netsh but it is not showing the prompt.
Here is picture:
![[Image: 3743ab088d0c7031502d69d849116083.png?1366884170]](https://gyazo.com/3743ab088d0c7031502d69d849116083.png?1366884170)
And here is the code:
You need 1 button, listbox and richtextbox, 1 label.
Enjoy :)
Here is picture:
![[Image: 3743ab088d0c7031502d69d849116083.png?1366884170]](https://gyazo.com/3743ab088d0c7031502d69d849116083.png?1366884170)
And here is the code:
You need 1 button, listbox and richtextbox, 1 label.
Code
Dim proc As New System.Diagnostics.Process()
proc.StartInfo.FileName = "netsh"
proc.StartInfo.Arguments = "wlan show networks mode=bssid"
proc.StartInfo.RedirectStandardOutput = True
proc.StartInfo.UseShellExecute = False
proc.StartInfo.CreateNoWindow = True
proc.Start()
Dim output As String = proc.StandardOutput.ReadToEnd
RichTextBox1.Text = output
For Each line As String In RichTextBox1.Lines
If line.Contains("BSSID") Then
ElseIf line.Contains("SSID") Then
Dim wifinetwork As String = line.Split(":")(1)
ListBox1.Items.Add(wifinetwork)
End If
Next
Label2.Text = ListBox1.Items.CountEnjoy :)



