📌  相关文章
📜  时间:2019-05-10 标签:c#run cmd hidden-whatever Code Example

📅  最后修改于: 2022-03-11 14:56:30.378000             🧑  作者: Mango

代码示例2
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();