How to batch set up private folders and set permissions for users
This article mainly introduces how to set up a batch of private folders for users and set permissions for batch processing, which has a certain reference value. Interested friends can refer to it. I hope you will gain a lot after reading this article. Let's take a look at it.
The code is as follows:
@ echo off set / p outputPath= Please enter the root directory: set / p importTxt= Please import the user list (* .txt): for / f "tokens=1 delims="% j in ('more% importTxt%') do (mkdir% outputPath%\% j echo Y (cacls% outputPath%\% j / C / G% jvf) Thank you for reading this article carefully I hope the article "how to set up a batch of private folders and set permissions for users" shared by the editor is helpful to everyone. At the same time, I also hope that you can support us and pay attention to the industry information channel. More related knowledge is waiting for you to learn!