I\'m using this to get the path and executable of default web browser:
public static string DefaultWebBrowser
{
get
{
For .Net Core you need to call (suggested in .Net Core 2.0 Process.Start throws "The specified executable is not a valid application for this OS platform")
var proc = Process.Start(@"cmd.exe ", @"/c " + pathToHtmlFile);
When I tried Process.Start(pathToHtmlFile);
,
I've got System.ComponentModel.Win32Exception: The specified executable is not a valid application for this OS platform.