Get the App
SLTechnology News&Howtos  ›  Development  › 

How to batch set up private folders and set permissions for users

Shulou Source: shulou.com Published: 2022-06-03 08:20:09 11月15日 Update

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!

Tags: Articles users files folders permissions private code value interests at the same time more friends root directory knowledge editing industry information information channels channels references Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno MariaDB Redmi macOS Microsoft vpn