我只想通过WORD打开指定目录(如:d:\myfile\aa\xxx.doc)的文件,代码怎么写啊???

解决方案 »

  1.   

    System.Diagnostics.Process.Start("winword",???);
      

  2.   

    System.Diagnostics.Process.Start("C:\\Program Files\\Microsoft Office\\Office10\\WINWORD","D:\\myfile\\aa\\xxx.doc");
      

  3.   

    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();
    }
      

  4.   

    System.Diagnostics.Process.Start