1Qter豆
最佳答案试试这样("md c:\1\n");
还有就是如果这样不行 就需要启动cmd 然后往里面写参数
我以前也遇到过,直接执行命令不行,需要启动cmd
比如我以前的代码
QProcess p_check;
p_check.start("cmd.exe");
while(p_check.waitForStarted())
break;
p_check.write("wmic\n");
QString tem = "process where caption=\"" + proName + "\" get ExecutablePath\n";
p_check.write(tem.toAscii());
p_check.wri ...
| ||
2014-4-29 15:27:03
显示全部楼层
| ||
2014-4-29 16:50:59
显示全部楼层
| ||
2014-4-30 14:34:13
显示全部楼层
| ||