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.
If I try to do the same thing in code (below), it doesn't work.
What am I doing wrong? Why would the same command not work when run in an application?
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}
Code:
Process.Start("%windir%\system32\explorer.exe shell:::{1fa9085f-25a2-489b-85d4-86326eedcd87}")