Quantcast
Channel: VBForums - Visual Basic .NET
Viewing all articles
Browse latest Browse all 27033

VS 2012 Open the wireless network manager

$
0
0
Hello.

Windows already has a nice tool to manage and connect to various wireless networks - the wireless network manager. I don't want to re-invent the wheel. I'd rather just give the users a button that opens the wireless network manager for them, and they can connect to whatever network they want that way.

If I'm at a command prompt and I type this in (below) it works, and the wireless network manager opens.

Code:

explorer.exe shell:::{1fa9085f-25a2-489b-85d4-86326eedcd87}
If I try to do the same thing in code (below), it doesn't work.

Code:

Process.Start("%windir%\system32\explorer.exe shell:::{1fa9085f-25a2-489b-85d4-86326eedcd87}")
What am I doing wrong? Why would the same command not work when run in an application?

Viewing all articles
Browse latest Browse all 27033

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>