复制代码 代码如下:
@echo off
set /p outputPath=请输入根目录:
set /p importTxt=请导入用户列表(*.txt):
for /f "tokens=1 delims= " %%j in ('more %importTxt%') do (
mkdir %outputPath%\%%j
echo Y
(cacls % outputPath%\%%j /C /G %%j:F
)
@echo off
set /p outputPath=请输入根目录:
set /p importTxt=请导入用户列表(*.txt):
for /f "tokens=1 delims= " %%j in ('more %importTxt%') do (
mkdir %outputPath%\%%j
echo Y
(cacls % outputPath%\%%j /C /G %%j:F
)