However the folder is used by a service which creates sub folders which need the same permissions but they are being created with restricted permissions. I do not know what folders will be created. I need to set the permission of the top folder so that it propogates to any sub folders.
Is there a simple way to do this?
Code: Select all
With FileSecurity(DPath).DACL do begin Clear; NewItem(Everyone, GENERIC_ALL, atAllowed, [afObjectInherit, afContainerInherit]); end;