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. FOLDER ACCESS PERMISSION

FOLDER ACCESS PERMISSION

Scheduled Pinned Locked Moved C / C++ / MFC
c++help
3 Posts 3 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.
  • K Offline
    K Offline
    Killer3
    wrote on last edited by
    #1

    Hi all , Please help me out to programmaticaly find whether we have Rights to "CREATE & MODIFY IN a specified folder" in vc++. INPUT : NAME OF THE Folder OUTPUT : Whether it is possible for logged user to create a file in folder

    for thendral

    D M 2 Replies Last reply
    0
    • K Killer3

      Hi all , Please help me out to programmaticaly find whether we have Rights to "CREATE & MODIFY IN a specified folder" in vc++. INPUT : NAME OF THE Folder OUTPUT : Whether it is possible for logged user to create a file in folder

      for thendral

      D Offline
      D Offline
      David Crow
      wrote on last edited by
      #2

      The easiest way is just to try and create a (temporary) file. If it fails with a specific error, you know that current permissions are inadequate.


      "Approved Workmen Are Not Ashamed" - 2 Timothy 2:15

      "Judge not by the eye but by the heart." - Native American Proverb

      1 Reply Last reply
      0
      • K Killer3

        Hi all , Please help me out to programmaticaly find whether we have Rights to "CREATE & MODIFY IN a specified folder" in vc++. INPUT : NAME OF THE Folder OUTPUT : Whether it is possible for logged user to create a file in folder

        for thendral

        M Offline
        M Offline
        Mark Salsbery
        wrote on last edited by
        #3

        This article shows Windows Security APIs you can use... Check User’s Permissions On A File or Folder[^]

        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