Page 1 of 1

Rename files in one folder from files in another folder

PostPosted: Fri May 08, 2015 7:00 am
by NimrodMor
Hi all,
I have 2 folders with the same number of files, i want to rename the files in one folder to be exactly like the files in the other one.
Is this possible? and how please?
Thank you.

Re: Rename files in one folder from files in another folder

PostPosted: Tue May 19, 2015 12:04 pm
by Stefan
Step 1)
make a list of the file names from first folder.

For example with DOS: dir /b > NEWfilenamelist.txt

NEWfilenamelist.txt contains now. e.g.:
wantedFilename01.ext
wantedFilename02.ext
...
...



Step 2)
make a list of the file names from second folder: dir /b > oldfilenames.txt

oldfilenames.txt contains now, e.g.:
oldname01.ext
oldname02.ext
...
...



Step 3)
concatenate the two list together, like
oldname01.ext|wantedFilename01.ext
oldname02.ext|wantedFilename02.ext
...
...


and save this e.g. as RenameList.txt




Step 4)
search the forum for "Renaming From A Text File" method (or read the help) and use the RenameList.txt file for that.

http://www.bulkrenameutility.co.uk/forum/viewtopic.php?f=2&t=435
http://www.bulkrenameutility.co.uk/forum/viewtopic.php?f=3&t=1271&p=3652&#p3652
http://www.bulkrenameutility.co.uk/forum/viewtopic.php?f=8&t=1644
http://www.bulkrenameutility.co.uk/forum/viewtopic.php?f=4&t=1904