Make a lot of directories but use only one cmd line

Enter your questions, tips and tricks about software, hardware, electronics, etc. Help and be helped.
Post Reply
User avatar
Echo
Registered User
Registered User
Posts: 347
Joined: August 6th, 2012, 9:19 am
Location: Virginia
Contact:

Make a lot of directories but use only one cmd line

Post 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.
For I am shadows and will follow you
One and the same are we - Metallica
Post Reply