Using CACLS to set file / folder permissions to subfolders and files only
Posted on 2009-02-20
I am attempting to do some automatic folder creation on our server via some VBA programming. I am using the CACLS command to set the proper permissions. The thing I cannot figure out is how to using CACLS to set permissions to only subfolders and files - and not the actual folder that I am changing the permissions of. At the folder creation, I am not placing any documents in the folder, just creating the folder, setting permissions (or trying to) and that's it. I am using the following command:
Shell("CACLS " & """" & DirectoryPathIP & """" & " /e /g Domain\Group:C", vbHide)
I realize you can get a DISPLAY of what permissions are effecting by using the CACLS command - the (IO) and all that jazz - but is there any way to set this by CACLS or any other method?