Dunkel redirectionFolder som stränger = ”D:\test\subtest\”,
Dunkelt alla som nya FileSystemAccessRule (”alla”, FileSystemRights.FullControl, AccessControlType.Allow)
Dunkel dirSecurity som nya DirectorySecurity (redirectionFolder, AccessControlSections.Group)
dirSecurity.AddAccessRule (alla)
Directory.SetAccessControl (redirectionFolder, dirSecurity)
|