110,567
社区成员
发帖
与我相关
我的任务
分享
Process p = new Process();
p.StartInfo.UseShellExecute = false;
p.StartInfo.CreateNoWindow = true;
p.StartInfo.FileName = ???
p.StartInfo.RedirectStandardOutput = true;
p.StartInfo.WorkingDirectory = ???;
p.Start();
string output = p.StandardOutput.ReadToEnd();
p.WaitForExit();