Batch process of creating private folders and setting permissions for users in batches

Time:2020-1-19
Copy codeThe code is as follows:
@echo off
Set / P outputpath = please enter the root directory:
Set / P importtx = please import user list (*. Txt):
for /f “tokens=1 delims= ” %%j in (‘more %importTxt%’) do (
mkdir %outputPath%\%%j
echo Y
(cacls % outputPath%\%%j /C /G %%j:F
)