Script to create directories from a list
Posted on 2014-11-03
I have a file called "directories.txt" with the names of of new directories I wish to create. Let's say the contents of this file are as follows:
I need a Win or PowerShell script which, for each line in this file, creates a new directory with the corresponding name and, inside each one, two directories called "subdir1" and "subdir2". So, in the above example, the script will create a directory called "directoryA" and one called "directoryB", each one with directories "subdir1" and "subdir2" inside.