1、可能是参数不是绝对路径

2、如果要启动的程序为单独一个exe文件没有问题,而当这个程序有配置文件,或在启动时需要读取其他文件时,请配置一下 StartInfo 的 WorkingDirectory 属性为你的应用程序目录。
以上是我遇到相似的问题的解决方法:

ProcessStartInfo psi = new ProcessStartInfo();
                psi.FileName = @"C:\myprogram\aaa.exe";
                psi.UseShellExecute = false;
                psi.WorkingDirectory = @"C:\myprogram";
                psi.CreateNoWindow = true;
                Process.Start(psi);

可能是直接双击exe程序与用Process.Start()来启动程序有些区别吧!

上述代码来自于http://bbs.csdn.net/topics/350254103?page=1#post-394632610

相关文章:

  • 2021-06-14
  • 2021-07-07
  • 2021-04-01
  • 2022-01-18
  • 2021-05-29
  • 2021-11-27
  • 2021-11-29
猜你喜欢
  • 2021-05-10
  • 2022-02-16
  • 2021-11-18
  • 2021-06-24
  • 2021-11-07
  • 2021-11-05
相关资源
相似解决方案