Remove Inherited NTFS Permissions
Posted on 2004-08-27
VB6: I need to be able to copy a folder and all it's contents (including sub-folders) to a users machine, but then remove all inherited NTFS permissions, and then add back what I want. The idea here is that a user will run the app, copy the folder over to their machine, but then be able to only add/edit/remove files within the folder structure that has been copied, but not mess with the folder structure.
I have all the copy folder code down, no problem. I can even set new permissions to the copied folder with no problem. However, these new permissions are moot unless I can remove the inherited permissions that were implied when the folder was copied. If could just toggle the "Inherit Permissions..." flag, that would work just as well.