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. changing the hidden property of a folder - urgent

changing the hidden property of a folder - urgent

Scheduled Pinned Locked Moved C / C++ / MFC
7 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
    sheetal_06
    wrote on last edited by
    #1

    How to change the hidden property of a folder through code? Plz help..it's urgent Thanks..

    H M 2 Replies Last reply
    0
    • S sheetal_06

      How to change the hidden property of a folder through code? Plz help..it's urgent Thanks..

      H Offline
      H Offline
      Hamid Taebi
      wrote on last edited by
      #2

      Is SetFileAttributes(_T("c:\\picture"),FILE_ATTRIBUTE_HIDDEN); helpfuls?


      WhiteSky


      M 1 Reply Last reply
      0
      • S sheetal_06

        How to change the hidden property of a folder through code? Plz help..it's urgent Thanks..

        M Offline
        M Offline
        Michael Dunn
        wrote on last edited by
        #3

        SetFileAttributes()

        --Mike-- Visual C++ MVP :cool: LINKS~! Ericahist | PimpFish | CP SearchBar v3.0 | C++ Forum FAQ Ford, what's this fish doing in my ear?

        S 1 Reply Last reply
        0
        • H Hamid Taebi

          Is SetFileAttributes(_T("c:\\picture"),FILE_ATTRIBUTE_HIDDEN); helpfuls?


          WhiteSky


          M Offline
          M Offline
          Michael Dunn
          wrote on last edited by
          #4

          YOu need to read the current attributes with GetFileAttributes(), make sure that succeeded, then call SetFileAttributes() and add just FILE_ATTRIBUTE_HIDDEN.

          --Mike-- Visual C++ MVP :cool: LINKS~! Ericahist | PimpFish | CP SearchBar v3.0 | C++ Forum FAQ Ford, what's this fish doing in my ear?

          A 1 Reply Last reply
          0
          • M Michael Dunn

            SetFileAttributes()

            --Mike-- Visual C++ MVP :cool: LINKS~! Ericahist | PimpFish | CP SearchBar v3.0 | C++ Forum FAQ Ford, what's this fish doing in my ear?

            S Offline
            S Offline
            sheetal_06
            wrote on last edited by
            #5

            sorry for not being specific.Actually i want to remove the hidden property that has been already set to a folder.. Thanks...

            H 1 Reply Last reply
            0
            • S sheetal_06

              sorry for not being specific.Actually i want to remove the hidden property that has been already set to a folder.. Thanks...

              H Offline
              H Offline
              Hamid Taebi
              wrote on last edited by
              #6

              How to Change the Attributes of a Directory Through Visual C++[^]


              WhiteSky


              1 Reply Last reply
              0
              • M Michael Dunn

                YOu need to read the current attributes with GetFileAttributes(), make sure that succeeded, then call SetFileAttributes() and add just FILE_ATTRIBUTE_HIDDEN.

                --Mike-- Visual C++ MVP :cool: LINKS~! Ericahist | PimpFish | CP SearchBar v3.0 | C++ Forum FAQ Ford, what's this fish doing in my ear?

                A Offline
                A Offline
                AprNgp
                wrote on last edited by
                #7

                I doubt if SetFileAttributes() will set a folders attributes. I think it works only for files.

                Apurv

                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