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
Forum Updated to NodeBB v4.3 + New Features

QProcess, Application found in cache

Scheduled Pinned Locked Moved General and Desktop
3 Posts 2 Posters 2.9k Views 1 Watching
  • 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 19 Jul 2014, 11:32 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
    • D Offline
      D Offline
      dheerendra
      Qt Champions 2022
      wrote on 19 Jul 2014, 14:04 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 19 Jul 2014, 15:31 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

        1/3

        19 Jul 2014, 11:32

        • Login

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