How to Programatically Replace Files's Permissions with Father's?
I have a folder with permissions already set, in that开发者_开发问答 folder I have some files that should all have the same permissions as the parent folder, the only thing is when these files get replaced by the updater the permissions change.
How can I have the updater replace these files's permissions again with the parent folder's?
Deal with acls sometimes could be annoying, be careful and good luck.
Here is a well-explained article http://msdn.microsoft.com/en-us/magazine/cc163885.aspx And you could see the icacls and cacls commandline tools.
Use with careful and try to backup before.
精彩评论