Process p = new Process();
p.StartInfo.FileName = @"";//æ§å¶å°ç¨åºçè·¯å¾
p.StartInfo.RedirectStandardOutput = true;
p.StartInfo.RedirectStandardInput = true;
p.Start();
p.StandardInput.WriteLine("");
p.StandardOutput.ReadLine();
温馨提示:答案为网友推荐,仅供参考