# Create a sub folder within mulptiple folders

I want to create a folder structure like this:

folder1
subfolder
folder2
subfolder
folder3
subfolder
etc...


The folders (folder1, folder2 etc.) already exist, but I want to add the subfolder to each one. Yes, I can just go into each folder, and add it in individually, but I was wondering if there was an easier way to do this?

• Is there a pattern for your sub-folders - if yes, then it becomes much easier to do it with batch files – Prasanna Apr 10 '15 at 3:54
• @Prasanna the subfolders are just going to be created in the lowest step of the folder structure, all with the same name. – Ben Apr 10 '15 at 4:16

If running Windows, you can use batch files. The command to make a directory is mkdir and you can use for to iterate through the files in the directory.
cd path\to\dir