Best way to manipulate Windows ACL permissions
问题 My goal is to find out how to programmatically adjust permissions on files & directories in Windows using .NET. I have identified the following options: Windows API (yuck!) Active Directory Service Interfaces (COM... ugh...) Windows PowerShell (?) Google for an easy-to-use facade. None of these seem very palatable to me. Which route would you guys take? Perhaps there's another way? 回答1: You can do this type of thing using the FileSecurity class 来源: https://stackoverflow.com/questions/1278099