C#C
C#3y ago
10 replies
MetalManeMc

Run .url file

I am trying to open an app using a .url shortcut. I tried using the same method as for .lnk shorcuts but it's not valid.
Anyone knows a workaround?

Code:
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\<>\Documents\GitHub\BedrockLauncher\BedrockLauncher\bin\Debug\net6.0-windows10.0.17763.0\Minecraft Preview_Editor.url' with working directory 'C:\Users\<>\Documents\GitHub\BedrockLauncher\BedrockLauncher\bin\Debug\net6.0-windows10.0.17763.0'. The specified executable is not a valid application for this OS platform.
image.png
Was this page helpful?