我正在尝试启动一个具有“ netsh”之类的输出的进程,但是在获得标准输出流之后,我希望该进程继续运行而不是终止
Process build = new Process();
build.StartInfo.FileName = "netsh.exe";
build.StartInfo.UseShellExecute = false;
build.StartInfo.RedirectStandardOutput = true;
build.StartInfo.RedirectStandardError = true;
build.StartInfo.CreateNoWindow = true;
build.Start();
MessageBox.Show(build.StandardOutput.ReadToEnd());