Is there a way to set the permissions for a folder from a command I could use in a batch file? I need to create a folder, copy some files to it and then give a group full access rights to that folder and files. Thanks.
There is a dos command to change permissions called cacls which can be used in a batch file. If you open a dos window and type "cacls /?" you will get the full syntax.
The above gives the domain admins full permissions to c:\test and the domain user joe change permissions.
The command does ask for confirmation when it is run so, if you need it to be silent then there is an old batch file trick where you pipe a 'y' into the command. So to run the above example silently you would use:
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.