分类: C# basic 2011-04-25 18:55 3972人阅读
- Process p = new Process();
- string path = ...;
- ProcessStartInfo pi= new ProcessStartInfo(path, ...);
- pi.UseShellExecute = false;
- pi.RedirectStandardOutput = true;
- p.StartInfo = pi;
- p.Start();
- p.WaitForExit();
- string output = p.StandardOutput.ReadToEnd();
bat文件的内容为
C# 如何执行bat文件 传参数
原文:http://www.cnblogs.com/joean/p/4870486.html