RetouchPRO

Go Back   RetouchPRO > Tools > Software
Register Blogs FAQ Site Nav Search Today's Posts Mark Forums Read


Software Photoshop, Lightroom, Paintshop Pro, Painter, etc., and all their various plugins. Of course, you can also discuss all other programs, as well.

File duplicator software

Reply
 
Thread Tools
  #1  
Old 05-09-2015, 03:35 AM
Doug Nelson's Avatar
Doug Nelson Doug Nelson is offline
Janitor
 
Join Date: Aug 2001
Posts: 7,068
Blog Entries: 21
File duplicator software

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.
Reply With Quote top
  #2  
Old 05-09-2015, 08:33 AM
joe_7 joe_7 is offline
Member
Patron
 
Join Date: May 2015
Location: St. Louis
Posts: 63
Re: File duplicator software

Sounds like something a simple DOS script could do?
Reply With Quote top
  #3  
Old 05-09-2015, 09:12 AM
pixaeiro pixaeiro is offline
Member
 
Join Date: Feb 2015
Posts: 32
Re: File duplicator software

All copies in the same directory?
Reply With Quote top
  #4  
Old 05-09-2015, 09:26 AM
Doug Nelson's Avatar
Doug Nelson Doug Nelson is offline
Janitor
 
Join Date: Aug 2001
Posts: 7,068
Blog Entries: 21
Re: File duplicator software

Yes, all copies in the same directory.
Reply With Quote top
  #5  
Old 05-09-2015, 09:43 AM
pixaeiro pixaeiro is offline
Member
 
Join Date: Feb 2015
Posts: 32
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 code, rename the source and destination filenames. Hardcoded now to file.txt and file000000.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.
Reply With Quote top
  #6  
Old 05-09-2015, 09:45 AM
pixaeiro pixaeiro is offline
Member
 
Join Date: Feb 2015
Posts: 32
Re: File duplicator software

And sorry if this is ugly.. I am not an expert with batch command files, but everybody has cmd.exe in windows.
Reply With Quote top
  #7  
Old 05-09-2015, 09:48 AM
pixaeiro pixaeiro is offline
Member
 
Join Date: Feb 2015
Posts: 32
Re: File duplicator software

Oh, and if you add:

Code:
echo off
to the first line, it will not print all the ifs and copy commands to the screen:

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
)
Reply With Quote top
  #8  
Old 05-09-2015, 10:01 AM
Doug Nelson's Avatar
Doug Nelson Doug Nelson is offline
Janitor
 
Join Date: Aug 2001
Posts: 7,068
Blog Entries: 21
Re: File duplicator software

Thanks!
Reply With Quote top
  #9  
Old 05-10-2015, 05:04 AM
Doug Nelson's Avatar
Doug Nelson Doug Nelson is offline
Janitor
 
Join Date: Aug 2001
Posts: 7,068
Blog Entries: 21
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.
Reply With Quote top
  #10  
Old 05-10-2015, 08:24 AM
pixaeiro pixaeiro is offline
Member
 
Join Date: Feb 2015
Posts: 32
Re: File duplicator software

Hi Doug,
What exactly do you need to do?
Reply With Quote top
Reply

  RetouchPRO > Tools > Software


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Resizing images for RetouchPRO jeaniesa Photo Retouching 19 11-05-2016 09:28 PM
Can I view content damaged illustrator file? karlsson.agneta Software 1 01-06-2015 12:01 PM
File Management/Different Image Sizes rlualhati Input/Output/Workflow 6 10-10-2012 08:27 AM
windows 7 tip: restoring a deleted file Jerryb Salon 2 08-09-2011 07:54 PM
Impressionist plugin: Troubleshooting Cheryl H Photo-Art Resources 34 06-15-2009 11:13 PM


All times are GMT -6. The time now is 12:02 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
Copyright © 2016 Doug Nelson. All Rights Reserved