Page 1 of 1

Make a lot of directories but use only one cmd line

Posted: April 30th, 2013, 8:39 pm
by Echo
Found this excellent hint:

http://www.dq.winsila.com/tips-tricks/p ... rompt.html

Code: Select all

FOR /F %n IN (folders.txt) DO MKDIR %n
You have to put the command into the cmd prompt. I tried putting it into a cmd file but it didn't work. Read the whole article before you attempt it.

My file listed a folder for each server that we had on a separate line:

PC00
PC01
PC02

etc

Quicker than keying all of them by hand.