Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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!!!!!!!!!! :(

like image 317
lvkchaitanya Avatar asked Mar 26 '26 03:03

lvkchaitanya


1 Answers

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

like image 71
AbrahamJP Avatar answered Mar 27 '26 18:03

AbrahamJP



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!