怎么才能不让运行的cmd一闪而过,

2025-03-21 23:42:24
推荐回答(1个)
回答1:

r.exec("cmd /c start C:\\Windows\\System32\\cmd.exe");
路径扩展名都省略,简写为:
r.exec("cmd /c start cmd");
如果路径有空格或其它特殊字符,多加四个引号:
r.exec("cmd /c start \"\" \"C:\\Windows\\System32\\cmd.exe\"");