要重定向 IO 流,Process 对象必须将 UseShellExecute 属性设置为 False。 Process p1= new Process(); p1.StartInfo.UseShellExecute = false;