p.StartInfo.FileName = "cmd.exe";

p.StartInfo.Arguments = "/c" + args;
p.StartInfo.UseShellExecute = false;
p.StartInfo.RedirectStandardInput = true;
p.StartInfo.RedirectStandardOutput = true;
p.StartInfo.RedirectStandardError = true;
p.StartInfo.CreateNoWindow = true;
p.Start();

posted on 2010-11-26 20:17  Robbery  阅读(255)  评论(0编辑  收藏  举报