RunApplication lnk file
Posted: Wed Nov 09, 2016 1:45 pm
Hello,
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:
Failed to run application 'C:\Program Files\MyApp\MyApp.exe.lnk'.
The system cannot find the path specified
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.
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