Folder Accessibility Block


  • Hi with all.

    I was wondering which is the function / namespace I need to use in VS 2010 (using VB) to make a folder completely unaccesible (not even readable).

    Thanks in advance.

    3. března 2012 22:28


  • Your goal could be interpreted many different ways.  Can you tell us how you would do this in the system management tools first?
    Assuming you just want to do "normal" things to the directory, such as protecting it from certain users, then DirectoryInfo.SetAccessControl may be what you are seeking.

    4. března 2012 0:38