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();
        }
原文地址:https://www.cnblogs.com/1971ruru/p/2194039.html