I created a shortcut in the C: \ Temp folder to connect to a Wi-Fi network (a special kind of short cut)
I am trying to run this using C #
System.Diagnostics.Process myProc = new System.Diagnostics.Process ();
myProc.StartInfo.FileName = "C: \\ Temp \\ wifi.lnk";
myProc.Start ();
When I run the above code, nothing really happens. when I set "UseShellExecutable = False" and "RedirectStandardError = True", I get an exception: "The specified executable is not a valid Win32 application"
I tried to find the executable by outputting the "FindExecutable ()" method, but it returned an empty string.
Any help is greatly appreciated.
Bradman
source
share