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
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Hiding the folder from the explorer

Hiding the folder from the explorer

Scheduled Pinned Locked Moved C / C++ / MFC
linuxjson
4 Posts 4 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.
  • S Offline
    S Offline
    sarfaraznawaz
    wrote on last edited by
    #1

    Hello Every one. how one can hide file or folder from the explorer even it should not be visible when some one click on show hidden file and folder . is there any shell api for this .... Regards sarfaraz

    A S 2 Replies Last reply
    0
    • S sarfaraznawaz

      Hello Every one. how one can hide file or folder from the explorer even it should not be visible when some one click on show hidden file and folder . is there any shell api for this .... Regards sarfaraz

      A Offline
      A Offline
      Andre Kraak
      wrote on last edited by
      #2

      You could mark it as a system folder, which will hide it until the "Hode protected operating system files" option is unchecked. You can use the SetFileAttributes[^] function to set the folder attributes to FILE_ATTRIBUTE_SYSTEM.

      0100000101101110011001000111001011101001

      B 1 Reply Last reply
      0
      • A Andre Kraak

        You could mark it as a system folder, which will hide it until the "Hode protected operating system files" option is unchecked. You can use the SetFileAttributes[^] function to set the folder attributes to FILE_ATTRIBUTE_SYSTEM.

        0100000101101110011001000111001011101001

        B Offline
        B Offline
        Bram van Kampen
        wrote on last edited by
        #3

        Hi, Well, Ultimately you can not. You can hide it from casual 'browsers'. The situation is still that ultimately a designated administrator for a machine is considered 'the owner' of the contents of a drive, who has as such un restricted access to all files, stored on that machine. Anything short of that would leave the 'data Controller' unable to control the data. I think you refer to the MS Section of the disk (invisible to WinExplorer) from which the OS can be recovered. Part of the game is, that those sectors can 'NEVER'be written to by Users, hence it cannot contain any reportable personal data. :)

        Bram van Kampen

        1 Reply Last reply
        0
        • S sarfaraznawaz

          Hello Every one. how one can hide file or folder from the explorer even it should not be visible when some one click on show hidden file and folder . is there any shell api for this .... Regards sarfaraz

          S Offline
          S Offline
          Stefan_Lang
          wrote on last edited by
          #4

          At the very least, anyone with admin rights will always be able to see it. If nothing else, this is necessary for virus scanners and backup programs! Why is the standard hide flag not sufficient for your purpose? Maybe your problem can be solved in another way.

          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