Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Hide folder in window explorer

Hide folder in window explorer

Scheduled Pinned Locked Moved C / C++ / MFC
comtutoriallounge
4 Posts 2 Posters 0 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.
  • M Offline
    M Offline
    MKC002
    wrote on last edited by
    #1

    I want to hide a folder which exist in c drive. I use setfileattribute method and pass file_attribute_hidden. But if c drive is open in window explorer then folder does not hide immediately i need to refresh window explorer manually please suggest how to do that i got below link and function to do it but that code does not compile http://social.msdn.microsoft.com/Forums/en/windowssdk/thread/cc4a702f-1b2f-4d19-bf68-c88967544172\[^\] RefreshFolderSelectionPacket and RefreshSelection()

    L 1 Reply Last reply
    0
    • M MKC002

      I want to hide a folder which exist in c drive. I use setfileattribute method and pass file_attribute_hidden. But if c drive is open in window explorer then folder does not hide immediately i need to refresh window explorer manually please suggest how to do that i got below link and function to do it but that code does not compile http://social.msdn.microsoft.com/Forums/en/windowssdk/thread/cc4a702f-1b2f-4d19-bf68-c88967544172\[^\] RefreshFolderSelectionPacket and RefreshSelection()

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      Your link needs to be made clickable by using the link control on the edit window thus: clickety[^].

      Unrequited desire is character building. OriginalGriff I'm sitting here giving you a standing ovation - Len Goodman

      M 1 Reply Last reply
      0
      • L Lost User

        Your link needs to be made clickable by using the link control on the edit window thus: clickety[^].

        Unrequited desire is character building. OriginalGriff I'm sitting here giving you a standing ovation - Len Goodman

        M Offline
        M Offline
        MKC002
        wrote on last edited by
        #3

        Thanks for the link The given link says to use RefreshFolderSelectionPacket I get compile error when use this WHere this structure is defined

        L 1 Reply Last reply
        0
        • M MKC002

          Thanks for the link The given link says to use RefreshFolderSelectionPacket I get compile error when use this WHere this structure is defined

          L Offline
          L Offline
          Lost User
          wrote on last edited by
          #4

          MKC002 wrote:

          WHere this structure is defined

          Sorry, no idea; the link is the one that you provided in your original post.

          Unrequited desire is character building. OriginalGriff I'm sitting here giving you a standing ovation - Len Goodman

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups