我正在从我的C#程序运行一个控制台应用程序,然后我将输出重定向到我的应用程序。但是我收到的每条线的长度似乎都被切割到控制台窗口的宽度。我可以更改该窗口的大小吗?
ProcessStartInfo psi = new ProcessStartInfo(path);
psi.UseShellExecute = false;
psi.RedirectStandardOutput = true;
psi.RedirectStandardError = true;
var process = new Process();
process.StartInfo = psi;
process.EnableRaisingEvents = true;
process.StartInfo.CreateNoWindow = true;
process.ErrorDataReceived += Proc_ErrorDataReceived;
process.OutputDataReceived += Proc_OutputDataReceived;
process.Start();
process.BeginErrorReadLine();
process.BeginOutputReadLine();