2010-11-04 130 views

回答

1

你可能会需要使用System.Management和System.Security框架:

http://www.redmondpie.com/applying-permissions-on-any-windows-folder-using-c/

所有子目录中的应用相同的权限,则需要使用foreach循环遍历所有子目录你想修改的目录。

+0

System.Management仅在文章中用于获取用户列表。对于子目录,当然最好在ACL中正确设置InheritanceFlags和PropogationFlags,以便它们继承父级的权限。 – stuartd 2010-11-04 12:58:47