How to run pnputil from within a Qt C++ application? The following fails with lstderr showing "pnputil is not recognized as an internal or external command." Presumably because pnputil is a built-in (substituting a non-built-in does work). QProcess class reference says that the "cmd /c" format is a "possible solution" for Windows builtins, but not for me.
QProcess process;
process.start("cmd /c \"pnputil -e\"" );
if (!process.waitForStarted())
return false;
if (!process.waitForFinished())
return false;
QByteArray lstderr = process.readAllStandardError();
QByteArray lstdout = process.readAllStandardOutput();