set permissions using batch file after taking user input
I want my batch file to take input from the user and give "Full Access" permissions to a specific folder(the path will be hard coded) to the set of users, entered by the user. The user enters a comma seperated list of user开发者_运维知识库 names in the form(domain\username). Please help me!!!!!!!!!! :(
In windows XP you could use the following command
cacls C:\GNUPG /T /E /G everyone:F
If username is passed as first parameter to the batch file use the following command
cacls C:\GNUPG /T /E /G %1:F
In the above parameter "C:\GNUPG" is the path name
精彩评论