private void button1_Click(object sender, EventArgs e)
        {
            Process help = new Process();
            help.StartInfo.FileName = @"C:\帮助.chm";            
            help.StartInfo.Verb = "Open";
            help.StartInfo.CreateNoWindow = true;
            help.StartInfo.WindowStyle = System.Diagnostics.ProcessWindowStyle.Normal;
            help.Start();
        }
执行到最后一行的时候报 “找不到应用程序”  错误。帮解决一下。

解决方案 »

  1.   

    help.StartInfo.FileName = @"hh.exe C:\帮助.chm"; 
      

  2.   

    FileName指的是启动chm应用程序的路径。而不是打开的文件路径。打开的文件路径在 ProcessStartInfo.Arguments 里传
      

  3.   

    help.StartInfo.Arguments = @"C:\WINDOWS\hh.exe";
    是这样吗?
      

  4.   

    反了。
    help.StartInfo.FileName = @"C:\WINDOWS\hh.exe";
    help.StartInfo.Arguments = @" C:\帮助.chm";
      

  5.   


    问题应该是URL写的有问题吧。。比如这个路径:help.StartInfo.FileName = @"C:\WINDOWS\hh.exe";应该是 @"C:\\WINDOWS\\hh.exe";双斜杠吧。。
      

  6.   

    不用那么麻烦Help.ShowHelp(new Control(), @"C:\帮助.chm", "帮助.chm")