Copying a large number of times the same file
Solved
galaxauguste
Posted messages
485
Status
Member
-
Anonymous user -
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
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
-
-
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... -
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...