Copying a large number of times the same file

Solved
galaxauguste Posted messages 485 Status Member -  
 Anonymous user -
Hello,

Here is my problem:

I need to copy a large number of times (about 300-400) the same file and then be able to rename this list of files as follows: file_001, file_002, file_003 (with software so that I don't have to mess around renaming the files one by one).
But when you select the file to copy and try to copy it more than once in the same folder, it doesn't work because the two files have the same name, so you get the message: "This file already exists. Do you want to replace it?"

Is there a way to work around this issue other than creating as many folders as there are files to copy (which is also tedious...)?

I hope that one of you can help me.

Thank you very much in advance!

Configuration: Intel Core 2 Duo E8400 3 GHz
Asus P5Q PRO
4 Go DDR2 1066 MHz Kingston CL5
Gainward HD 4870 1 Go Golden Sample
Samsung LCD Full HD 37''
Western Digital Caviar Black 500 Go - 32 Mo
Antec Sonata III
Antec Earthwatts 650 W
Asus 20B1LST

Windows XP PRO SP3

3 answers

  1. derinderinderin Posted messages 102 Status Member 5
     
    you shouldn't copy it into the same folder
    0
    1. galaxauguste Posted messages 485 Status Member 35
       
      But that means I have to create 300-400 different name folders, which doesn't really solve my problem...
      0
    2. derinderinderin Posted messages 102 Status Member 5
       
      Excuse me, but I'm not a pro in computers. Try what you said, bugcrasher.
      0
    3. karirovax Posted messages 3584 Status Member 215
       
      Hi

      there's a very simple trick:

      after you've made several copies (300-400 files), to rename them, press Ctrl-A to select all, then F2 to rename, and there you go.
      0
    4. Anonymous user
       
      @karirovax: read the initial problem carefully, and you'll see what is inappropriate about your response...
      0
    5. derinderinderin Posted messages 102 Status Member 5
       
      she can't copy them properly
      0
  2. Anonymous user
     
    Hello,

    Here's how you could do it:

    1. Create an Excel table with the name of the first target file at the top: file_01. Then set up an automatic increment up to the number you’re interested in. That’s quick.

    2. Save that as a txt file.

    3. Create the following command in a .bat file:

    FOR /F %%A IN (targets.txt) DO copy source.txt %%A

    targets.txt is the text file you generated with Excel.

    source.txt is the file you wanted to copy in the first place.

    Run the command and you'll find n instances of your initial file, each with a different name, all done in less time than it takes to say so :o)

    There you go!
    --
    The more confident you are in your ability to make a machine work, the more of an idiot you look when it goes wrong...
    0
    1. galaxauguste Posted messages 485 Status Member 35
       
      Wow, I'm going to try!

      But how do we perform an increment in Excel?
      0
  3. Anonymous user
     
    Well, that's not the hardest thing around :o)

    You fill in the first cell with file_01

    Then, with your mouse, you gently grab the bottom right corner of your cell, and voila, you slyly drag it down... Miracle! The thing increments! :o)

    --
    The more confident you are in your ability to operate a machine, the more of an idiot you look when it goes wrong...
    0
    1. galaxauguste Posted messages 485 Status Member 35
       
      Ah yes, and how do you create a .bat file already?
      0
    2. karirovax Posted messages 3584 Status Member 215
       
      Re,

      To create a .bat, just open Notepad and copy/paste what BugCrusher says:

      @echo off
      FOR /F %%A IN (targets.txt) DO copy source.txt %%A

      karirovax
      0
    3. Anonymous user
       
      And to turn on the computer, most of the time, you press the big button in the front...
      0
    4. Anonymous user
       
      That being said, I consider the topic resolved; there are limits to everything...
      0