I am trying to run an app using a .url
link using Process.Start()
but, according to the documentation:
If the address of the executable file to start is a URL, the process is not started and
null
is returned.
Is there a workaround? There is absolutly no way to launch this app in another way.
Here was my code and its error message:
Process proc = new Process();
Trace.WriteLine(MainDataModel.Default.FilePaths.ExecutableDirectory + "\\Minecraft Preview_Editor.url");
proc.StartInfo.FileName = MainDataModel.Default.FilePaths.ExecutableDirectory + "\\Minecraft Preview_Editor.url";
proc.Start();
BedrockLauncher.Exceptions.AppLaunchFailedException: An error occurred trying to start process 'C:\\Users\<me\>\\Documents\\GitHub\\BedrockLauncher\\BedrockLauncher\\bin\\Debug\\net6.0-windows10.0.17763.0\\Minecraft Preview_Editor.url' with working directory 'C:\\Users\<me\>\\Documents\\GitHub\\BedrockLauncher\\BedrockLauncher\\bin\\Debug\\net6.0-windows10.0.17763.0'. The specified executable is not a valid application for this OS platform.