Hi,
to start the Windows Wireless Connection Dialog from a command shell use the following command line
1 | C:\> rundll32.exe %SystemRoot%\system32\van.dll,RunVAN |
Here a C# example
1 2 3 4 5 6 7 8 9 10 11 12 13 | using System.Diagnostics; string sBinRundll32 = System.IO.Path.Combine( new string [] { Environment.SystemDirectory, "rundll32.exe" }); string sWIFIDialogParameter = System.IO.Path.Combine( new string [] { Environment.SystemDirectory, "van.dll" }) + @",RunVAN" ; try { System.Net.NetworkInformation.NetworkInterface.GetIsNetworkAvailable(); } catch (Exception Ex) { string sBinRundll32 = System.IO.Path.Combine( new string [] { Environment.SystemDirectory, "rundll32.exe" }); string sWIFIDialogParameter = System.IO.Path.Combine( new string [] { Environment.SystemDirectory, "van.dll" }) + @",RunVAN" ; System.Diagnostics.Process.Start(sBinRundll32, sWIFIDialogParameter); } |