我正在尝试使用执行 cmd 命令
QProcess::startDetached("cmd /c net stop \"MyService\"");
这似乎并没有停止服务。但是,如果我从 start >> run 运行它,它会起作用。
c++ qt
c++ ×1
qt ×1