Discussion Locked

Creating many user folders

0 helpful
3 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

I need to create about 1600 user folders for the school I work at. I have an idea on how to do it but I'm don't know the ins and outs of batch files. How do I get MD and RMTSHARE to use a text file of users? How does the %(variable) connect to the user names in the text file?
Or Does anyone have a batch file to make this painful operation a breeze?

3 replies

by cactus pete

If you want the complexity of a two batch file system [not the only way], you could use the FOR command...

for /f "tokens=2" %%i in (list.txt) do bat2.bat %%i

Then read in the argument you're passing to the second batch to MD with the appropriate username, etc.

List.txt would be the list of usernames...

I used to use this system to check volume sizes across domains... My list.txt was a list of the remote machine names. The FOR command is the best tool I've found under DOS.

This discussion is closed to new replies.