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. QT 6.7.2 C++ delete symblic link
Forum Updated to NodeBB v4.3 + New Features

QT 6.7.2 C++ delete symblic link

Scheduled Pinned Locked Moved Unsolved General and Desktop
4 Posts 3 Posters 259 Views 2 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.
  • Z Offline
    Z Offline
    Zbigniew-Sch
    wrote on last edited by
    #1

    Hi,

    I have created file symbolic link using (Microsoft Visual Studio 2022, C++ ,Windows 11, Qt 6.7.2):

    QFile::link(filePath, symblicLinkPath);
    

    but how to remove this link?

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      I would go with QFile::remove.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      1
      • D Offline
        D Offline
        dheerajshenoy
        wrote on last edited by dheerajshenoy
        #3

        @SGaist This doesn't remove the link. It shows me "No such file or directory found" when clearly it is there

        SGaistS 1 Reply Last reply
        0
        • D dheerajshenoy

          @SGaist This doesn't remove the link. It shows me "No such file or directory found" when clearly it is there

          SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          @dheerajshenoy what is your exact situation ?
          What does QDir::remove tell you ?

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          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