Duplicate Folder 1000 Times

March 21, 2012 at 00:40:55
Specs: Windows 7, 16GB
Hello All,

I have a scenario where I have a folder:

C:\Temp\Folder1 which contains 1000 TIFF images and I want to duplicate this folder 1000 times (including the files contained within it)

So for example:


How can I achieve this through command line.

I managed to use the script located at this post: http://www.computing.net/answers/pr... to copy the file 1000 times.

Any help would be greatly appreciated.

See More: Duplicate Folder 1000 Times

March 21, 2012 at 01:08:35
I think I have figured it out:

I created 1000 documents in X:\Temp\Source

Then ran this batch file and it seems to be doing what I want.

@echo off

for /l %%# in (1,1,200) do (
mkdir X:\Temp\A1\Folder%%#
copy X:\Temp\Source\*.* X:\Temp\A1\Folder%%#\ > nul

Report •
Related Solutions

Ask Question