c# 调用CMD不显窗口

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();
        }
posted @ 2011-09-28 12:04  一修先生  阅读(225)  评论(0编辑  收藏  举报