Copy to many directories simultaneously. - TechRepublic
General discussion
March 29, 2005 at 08:29 AM
ippirate

Copy to many directories simultaneously.

by ippirate . Updated 21 years, 3 months ago

I have a subdirectory that I need to create in multiple similar directories. I would prefer to accomplish this through automation rather than adding each individually, one at a time.

The structure looks something like below:

R:\Project Folder\xxxSeries\PRyyy\Current\Data\Tooling\ where xxx is a number 800, 900, 1000, 1100 etc. and yyy is also number inside that series x00-x99.
Example:
R:\Project Folder\800Series\PR851\Current\Data\Tooling\

I would like to add the subdirectory \3D to each of these (roughly 900 instances)
Example:
R:\Project Folder\800Series\PR851\Current\Data\Tooling\ to
R:\Project Folder\800Series\PR851\Current\Data\Tooling\3D\

I could use the XCOPY command with the /E switch to copy the directory in but I still need a way to wildcard the directory into the parent.
Example:
R:\Project Folder\800Series\PR8xx\Current\Data\Tooling\ were xx is a wildcard. I will also need to overcome the space in Project Folder.

Any ideas?

This discussion is locked

All Comments