Page 1 of 1

copy &rename a single file multiple times

PostPosted: Wed Mar 02, 2022 6:02 pm
by LauraJ2015
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?

Re: copy &rename a single file multiple times

PostPosted: Thu Mar 03, 2022 8:22 pm
by therube
? 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.