Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. QProcess, Application found in cache
QtWS25 Last Chance

QProcess, Application found in cache

Scheduled Pinned Locked Moved General and Desktop
3 Posts 2 Posters 2.9k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • K Offline
    K Offline
    kolegs
    wrote on last edited by
    #1

    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"]@

    1 Reply Last reply
    0
    • dheerendraD Offline
      dheerendraD Offline
      dheerendra
      Qt Champions 2022
      wrote on last edited by
      #2

      I tried and it works. Can you check the path and arguments correctly ?

      Dheerendra
      @Community Service
      Certified Qt Specialist
      http://www.pthinks.com

      1 Reply Last reply
      0
      • K Offline
        K Offline
        kolegs
        wrote on last edited by
        #3

        I am sure the paths are correct and with wrong path to 7zip there is an error "no such file or directory"

        I think the problem may be related to administrator permission but I am not sure. Its first time I use windows 8 so maybe something changed

        1 Reply Last reply
        0

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved