Batch script to create home home directories from list of names
- by Steven
I'm trying to create a home directories with permissions from a text file. I can only get the batch file to run the first line. Can anyone tell me why?
I initiate the scripts by running go.bat as administrator.
go.bat
@echo
for /f %%a in (users1.txt) do call test.bat %%a
test.bat
@echo off
m:
cd \
mkdir %1
icacls %1 /grant %1:(OI)(CI)M
cd…