QProcess, Application found in cache
-
Hi,
I'm trying to use QProcess to start 7zip and unpack some files but evertime I get an error Application found in cache. I am using windows 8.
What am I doing wrong?
There is a code:
@ QStringList args;
args << "e" << "-y" << ("-o" + QDir::tempPath()+"/tmp.txt") << packedFilePath;QProcess p7zip; QString p7zipPath = QDir::toNativeSeparators("C:/Program\ Files/7-Zip/7z.exe"); p7zip.start(p7zipPath, args); p7zip.waitForFinished(5000); qDebug()<<p7zip.errorString();@
and the output:
@Application "??\C:\Program Files\7-Zip\7z.exe" found in cache
"Nieznany blad" ["Unknown error"]@ -
I tried and it works. Can you check the path and arguments correctly ?