开发者

set permissions using batch file after taking user input

开发者 https://www.devze.com 2023-02-09 22:21 出处:网络
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 comm

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

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号