📅  最后修改于: 2022-03-11 14:56:30.378000             🧑  作者: 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();