QProcess: The system cannot find the file specificed even when full path is provided

Here is my full code: #include <QCoreApplication> #include "iostream" int main(int argc, char *argv[]) { QCoreApplication a(argc, argv); QProcess process; QString path = "C:\\Windows\\System32\\wbem\\WMIC.exe"; QString arg = "cpu get name"; QStringList arguments; arguments << arg; //process.start(path,arguments); process.start(path + " " + arg); //qDebug() << "Started"; std::cout << "Started" << std::endl; if (!process.waitForFinished()){ qDebug() << "ERROR"… Read More QProcess: The system cannot find the file specificed even when full path is provided