Hello,
I have created a shortcut in C:\Temp folder for Wifi Network connection (special kind of short cut)
I am trying to launch 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 the "UseShellExecutable = False" and "RedirectStandardError = True", I am getting an exception saying "The specified executable is not a valid Win32 application"
I have tried to find the executable by pinvoking the "FindExecutable()" method, but it returns empty string.
Any help is greatly appreciated.