I have some issue with RunApplication, I am not able to start an lnk file.
I have a case that I need to start the application from a shortcut.
I get the following error:
Code: Select all
string path = "C:\\Program Files\\MyApp\\MyApp.exe"; if( !File.Exists(path ) ) path += ".lnk"; Report.Log(ReportLevel.Info, "Application", "Run application 'C:\\Program Files\\MyApp\\MyApp.exe' with arguments '' in normal mode."); Host.Local.RunApplication(path, "", Path.GetDirectoryName(path), false);
Failed to run application 'C:\Program Files\MyApp\MyApp.exe.lnk'.
The system cannot find the path specified