I'm trying to execute a batch file.
This code should start cmd.exe
in a detached process and execute deleteme.bat
. The return value of exec->startDetached
is true but the batch file is not executed.
Am I doing something wrong?
Here's my code:
QStringList arguments;
arguments << "/C deleteme.bat";
QProcess * exec = new QProcess();
exec->startDetached("cmd.exe", arguments);
Aucun commentaire:
Enregistrer un commentaire