📅  最后修改于: 2022-03-11 14:49:10.899000             🧑  作者: Mango
using System.Diagnostics;
Process process = new Process();
ProcessStartInfo startInfo = new ProcessStartInfo();
startInfo.WindowStyle = ProcessWindowStyle.Hidden;
startInfo.FileName = "cmd.exe";
startInfo.Arguments = "/C (command)";
process.StartInfo = startInfo;
process.Start();