private void creatProcess(Process p)
{
p.StartInfo.FileName = " cmd.exe ";
p.StartInfo.UseShellExecute = false;
p.StartInfo.RedirectStandardInput = true;
p.StartInfo.RedirectStandardOutput = true;
p.StartInfo.CreateNoWindow = true;
p.Start();
}
{
p.StartInfo.FileName = " cmd.exe ";
p.StartInfo.UseShellExecute = false;
p.StartInfo.RedirectStandardInput = true;
p.StartInfo.RedirectStandardOutput = true;
p.StartInfo.CreateNoWindow = true;
p.Start();
}
转载于:https://www.cnblogs.com/1971ruru/archive/2011/09/28/2194039.html