Thank you for being a valued part of the CNET community. As of December 1, 2020, the forums are in read-only format. In early 2021, CNET Forums will no longer be available. We are grateful for the participation and advice you have provided to one another over the years.

Thanks,

CNET Support

General discussion

Multiple Subfolder Creation

Jan 24, 2008 3:16AM PST

Common sense tells me there has to be a way to do this but I'm stumped. Using Microsoft Office (presumably 2003, not 2007) on the job. I'm trying to save myself A LOT of time here; I have to create one subfolder "Z" to be copied/inserted into several hundred other folders, all located within the same main folder "A". I could go into each folder and create a "Z" folder, but this could take a prohibitively long time. I'm convinced there's a direct command out there for simultaneous folder creation in multiple folders, but I have no clue where to start. Any thoughts? Or am I pipedreaming that Microsoft would ever be so considerate in the first place?

Discussion is locked

- Collapse -
Re: multiple subfolder creation.
Jan 24, 2008 5:26AM PST

Sorry, no, this isn't a feature of Windows.

You can do it in the GUI, or write a batch file (with separate lines for all those several 100 folders) or spend a few hours (or more) to master VBscript and write a script to do it.

If there's any logic in the names of the several 100 folders, I think that writing a batch file would be the fastest way. Something like:

cd mainfolder
cd subfolder1
md Z
cd ..
cd subfolder2
md Z
cd ..
etc

Hope this helps


Kees

- Collapse -
I love to hate Windows
Jan 24, 2008 5:41AM PST

Thanks! At least now I have somewhere to start. I'll see what I can pull off Happy

- Collapse -
Thought...
Jan 24, 2008 6:03AM PST

Windows do not like folders or files with the same names... hence the absence of any "support". It may save you a little time if you "copy" instead of "create", i.e. Use "Ctrl+C" once, then use "Ctrl+V" on each of the folders you want it copied to, rather than going to each folder and create a folder and name it "Z".
Using a batch file, you will need to write your 100's lines folder names. Either way, its time comsuming and take some effort. Maybe you need to think about why you need to copy the colder 100's times...

- Collapse -
As is often the case-
Jan 24, 2008 6:19AM PST

I have to do the folder-creation because one of my bosses- who is not terribly bright or resourceful- has decided it must be so. This sort of thng happens a lot. Copying seems like a good idea tho.