我只是使用 QProcess 在 windows XP 上的 qt 中执行一个 exe 文件。它可以正常工作,但不能在 Windows 7 上运行。我认为这显然是因为 Windows 7(或 Windows VISTA)上的 UAC 问题。有人可以帮我解决这个问题吗?提前致谢。这是我的代码:
QProcess p(0);
p.start("cmd", QStringList()<<"/c"<<"copy .\\tmp\\GamesKoreClient.exe .\\GamesKoreClient.exe");