📜  处理启动 Web 文档 - C# 代码示例

📅  最后修改于: 2022-03-11 14:49:14.352000             🧑  作者: Mango

代码示例1
System.Diagnostics.Process process = new System.Diagnostics.Process();
try
{
    process.StartInfo.UseShellExecute = true;
    process.StartInfo.FileName = pathToHtmlFile;
    process.Start();
}
catch (Exception e)
{
    Console.WriteLine(e.Message);
}