C# 设置 everyone 完全控制权限
var rule = new FileSystemAccessRule( "Everyone", FileSystemRights.FullControl, InheritanceFlags.ContainerInherit | InheritanceFlags.ObjectInherit, PropagationFlags.None, AccessControlType.Allow); DirectorySecurity security = new DirectorySecurity(); security.SetAccessRule(rule); Directory.SetAccessControl(@"A:\新建文件夹", security);
桂棹兮兰桨,击空明兮溯流光。