我是创建的Process实例来启动进程,不是使用Process的静态方法。 Process p = new Process();
p.StartInfo.FileName = ExeName;
p.StartInfo.Arguments = parameter;
 p.StartInfo.UseShellExecute = false;
 p.Start();但是在执行中会抛出以下Exception:
2009-09-01 04:32:37: 於 System.Diagnostics.PalErrors.Error(Int32 err)
於 System.Diagnostics.Process.StartWithCreateProcess(ProcessStartInfo startInfo)
於 System.Diagnostics.Process.Start()
什么原因,球高手解答

解决方案 »

  1.   

    但是在执行中会抛出以下Exception: [??异????常????的????消????息????呢??]
    2009-09-01 04:32:37: 於 System.Diagnostics.PalErrors.Error(Int32 err) 
    於 System.Diagnostics.Process.StartWithCreateProcess(ProcessStartInfo startInfo) 
    於 System.Diagnostics.Process.Start() 
      

  2.   


    这个,倒真忘记Exception的消息了。到网上查了下,出现这个异常的经常是Win32Exception。不知道能否按这个来分析