C#执行系统命令(CMD&&powershell)
CMD:Process p = new Process(); p.StartInfo.FileName = "cmd.exe"; //p.StartInfo.Arguments = "/c C:\\Windows\\System32\\cmd.exe"; p.StartInfo.UseShellExecute = false; //是否使用操作系统shell启动 p.StartInfo.RedirectS
原创
2020-11-24 14:50:42 ·
1916 阅读 ·
1 评论