copy &rename a single file multiple times

Bulk Rename Utility How-To's

copy &rename a single file multiple times

Postby LauraJ2015 » Wed Mar 02, 2022 6:02 pm

Hi,

I have a list of files that I want to copy and rename different names.

e.g file-01 to file-010, file-01 to file-011 etc.

I have a *.csv file with all the new names in the issue is there is only one file-01 and I want there to be multiple versions of it now just with different names.

Is this possible?
LauraJ2015
 
Posts: 1
Joined: Wed Mar 02, 2022 5:56 pm

Re: copy &rename a single file multiple times

Postby therube » Thu Mar 03, 2022 8:22 pm

? Windows batch file to make multiple copies of a single file, with each copy being assigned a unique filename

Start with your .csv & make it into a batch file.

So if you have
Code: Select all
file1,file01
file1,file02
file1,file03...

Edit that...

stick a COPY<sp> in the front
substitute the comma with a space

Code: Select all
COPY file1  file01
COPY file1  file02
COPY file1  file03...


Save that to a batch file, copymyfiles.bat.
therube
 
Posts: 1310
Joined: Mon Jan 18, 2016 6:23 pm


Return to How-To


cron