利用浏览器打开HTML文件
作者:互联网
using System;
namespace Belender
{
class Program
{
public static void Main(string[] args)
{
try
{
System.Diagnostics.Process.Start("firefox", AppDomain.CurrentDomain.BaseDirectory+"index.html");
}
catch
{
System.Diagnostics.Process.Start("iexplore", AppDomain.CurrentDomain.BaseDirectory+"index.html");
}
}
}
}
标签:文件,浏览器,index,AppDomain,System,HTML,BaseDirectory,CurrentDomain,Diagnostics 来源: https://www.cnblogs.com/mane/p/15351799.html