Closed mrboring closed 9 months ago
Hi @mrboring, thanks for opening an issue about Fli.
It is at present not possible to open a file with the default/assigned application.
Currently you need to specify the application with the file:
cli {
Exec @"path\where\application\is\chrome.exe"
Arguments @"this\is\test.html"
}
|> Command.execute
I write it on the todo-list to just have:
cli {
Exec @"this\is\test.html"
}
|> Command.execute
for opening in default application.
@mrboring This change is now in v1.10.0 available. Thank you for your input and have fun. 🙂
@CaptnCodr Thanks for the quick update. Tested and working in my scenario.
Hi I'm trying to open an HTML file in the default browser.
The above gives me the following exception:
I searched for
The specified executable is not a valid application for this OS platform
and found the following (old ) Stack Overflow page:.Net Core 2.0 Process.Start throws "The specified executable is not a valid application for this OS platform"
It suggests setting
UseShellExecute = true
. How would I do this withFli
, or is there a better way?Thanks.