using System.Diagnostics; //由Windows打开文件 public static void OpenFile(string fileName) { Process process = new Process(); process.StartInfo.FileName = fileName; process.StartInfo.Verb = "Open"; process.StartInfo.CreateNoWindow = false; process.Start(); }
public static void OpenFile(string fileName)
{
Process process = new Process();
process.StartInfo.FileName = fileName;
process.StartInfo.Verb = "Open";
process.StartInfo.CreateNoWindow = false;
process.Start();
}