I need a freeware program for Windows that can duplicate any file any number of times, adding an incremented number at the end of each. Google shows tons of duplicate eliminators, I want to make duplicates. A lot of them, even 100,000.
Announcement
Collapse
No announcement yet.
File duplicator software
Collapse
X
-
Re: File duplicator software
This batch script will do it:
Code:for /l %%x in (1, 1, 100000) do ( if %%x geq 0 if %%x lss 10 copy file.txt file00000%%x.txt if %%x geq 10 if %%x lss 100 copy file.txt file0000%%x.txt if %%x geq 100 if %%x lss 1000 copy file.txt file000%%x.txt if %%x geq 1000 if %%x lss 10000 copy file.txt file00%%x.txt if %%x geq 10000 if %%x lss 100000 copy file.txt file0%%x.txt )
In the for statement, change the 10000 to the number of copies you need.
This script will format all files with 0 before the number, so they have the same number of characters. If you want less characters, you'll need to modify the batch.
Copy this to the directory where the source file is located, to a new file named multicopy.bat (extension bat is important).
Open your command windows ( cmd.exe ) by typing cmd in the start menu Search programs and files.
If you have Python, this can be done in a much simpler script.
Comment
-
Re: File duplicator software
Oh, and if you add:
Code:echo off
Code:echo off for /l %%x in (0, 1, 100) do ( if %%x geq 0 if %%x lss 10 copy file.txt file00000%%x.txt if %%x geq 10 if %%x lss 100 copy file.txt file0000%%x.txt if %%x geq 100 if %%x lss 1000 copy file.txt file000%%x.txt if %%x geq 1000 if %%x lss 10000 copy file.txt file00%%x.txt if %%x geq 10000 if %%x lss 100000 copy file.txt file0%%x.txt )
Comment
-
Re: File duplicator software
A little slow (would take 37 hours to make 100,000 copies) and can't do folders or multiple files. But it would get the job done. Luckily this is a one-off project.
I've found one dedicated program that does this ($40) and several multi-tool programs that have this included (usually much more than $40). Either I'm the only person that ever needed to do this, or there's an opportunity here for a programmer.Learn by teaching
Take responsibility for learning
Comment
-
Re: File duplicator software
I have a project in mind that requires making many copies of several raw files. The final total number of copies depends on some things I don't know yet, so I'll probably have to do it several times, erasing between each. But it will likely be somewhere between a few thousand and 100,000 total files. $40 isn't very much money, it just seems disproportionate to the function.Learn by teaching
Take responsibility for learning
Comment
Related Topics
Collapse
-
What type of file is a cr2? Canon's raw file? What software will open it?
-
Channel: Photo Retouching
02-15-2017, 08:20 AM -
-
by DannyRaphaelI just discovered this little jewel.
I'm still reading through the documentation, but it looks promising. It has a trace feature (not to be confused with clone) similar to Corel Painter. Very arty results are possible for those with traditional art/drawing skills or with a moderate amount...-
Channel: Photo-Based Art
09-05-2004, 02:26 PM -
-
Chromakey software. Does anyone know a good free or cheep program. I do events i need a software program that can edit out the green screen on the spot so i can print the photos on the spot. If posible, the program would be able to directly import my canon xt images right away. I have seen the express...
-
Channel: Software
09-30-2007, 03:07 AM -
-
Hi I was just curious to know what image cataloging software members here use
-
Channel: Software
06-20-2002, 02:42 AM -
Comment