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. Lock a file / Directory

Lock a file / Directory

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

    Hi, How do u prevent a user from reading a file / Opening a Directory in windows. I want All the files / Directories to be locked

    Luck is Opportunity with hardwork

    D 1 Reply Last reply
    0
    • S sundar156

      Hi, How do u prevent a user from reading a file / Opening a Directory in windows. I want All the files / Directories to be locked

      Luck is Opportunity with hardwork

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

      What do you mean by "locked?" You can open a file exclusively that would prevent others from opening it. Or you could change the permissions of the file/folder such that only certain users/groups can access it.


      "Money talks. When my money starts to talk, I get a bill to shut it up." - Frank

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

      S 1 Reply Last reply
      0
      • D David Crow

        What do you mean by "locked?" You can open a file exclusively that would prevent others from opening it. Or you could change the permissions of the file/folder such that only certain users/groups can access it.


        "Money talks. When my money starts to talk, I get a bill to shut it up." - Frank

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

        S Offline
        S Offline
        sundar156
        wrote on last edited by
        #3

        Ok,I will be in brief.. If a user tries to access a file in windows A request is sent to the Server machine and a messagebox pops up indicating the a user is trying to access a file in the client....The admin in the server allows or denies access to a file ..Suppose if the admin denies access a control message is sent to the client..And The user gets a message that "The File cannot be viewed B'coz you are denied access" and if he permits the file Opens in the Client Machine. I have a service running in the Client and another in the Server ... -- modified at 17:37 Friday 11th August, 2006

        Luck is Opportunity with hardwork

        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