Creating a directory that can't be moved

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • acecranley
    New Member
    • Jun 2013
    • 2

    Creating a directory that can't be moved

    I want to create a directory programmaticall y in vb express 2010. I know how to create the directory and subdirectories but I don't know how to make the directory "locked". Typically users in our server, move by mistake the directory into another directory and then we have to spend long hours looking for the file. I would like that the directory becomes locked and nobody can move it. Any ideas?
  • pod
    Contributor
    • Sep 2007
    • 298

    #2
    This seems to be more a question for your IT department. The folders' permission must be limited with Network security as to give only certain rights to the users so they cannot move and/or delete the folders while giving your application the rights to create them.

    Comment

    • Killer42
      Recognized Expert Expert
      • Oct 2006
      • 8429

      #3
      Appropriate network permissions are definitely the way to go.

      However, it occurs to me that another (kind of ugly) workaround might be to have an application (on the server, I guess) keep a file open in that directory at all times.

      If the network OS is anything like plain ol' single-PC Windows, it shouldn't let anyone delete, rename or move the directory.

      Comment

      Working...