Rename a complete list of files

If you need help on how to use the program
Post Reply
Sylvv
Posts: 2
Joined: 2006-11-20 17:17:10
Location: Germany
Contact:

Rename a complete list of files

Post by Sylvv »

I'd like to rename filenames following a list with for example 450 lines and 2 columns. In the first column are the names of files existant, in the second file the new names. The folder with the files to rename only contents 150 files (a third of the complete list).
I tried this, but it does'nt work - neither in "multiple string replacement ('cause one cannot paste a list into), nor in "take names from list" (list.txt was extracted from excel-file).
Example:
4711.jpg rename into 1111.jpg
4712.jpg rename into 2222.jpg
4713.jpg rename into 3333.jpg
and so on...
Thanx for an answer.
antp
Site Admin
Posts: 9665
Joined: 2002-05-30 10:13:07
Location: Brussels
Contact:

Post by antp »

You do not need Ant Renamer when you have such list (well, I agree that I could add in Ant Rename something to use such list... it will be for a future version).
You can in excel put ren in front of each line, have a space between the two names, save the list as a text file in the folder where the files are, rename it with a ".bat" or ".cmd" file extension, and then run it. It will rename all the files.
e.g.:
ren 4711.jpg 1111.jpg
ren 4712.jpg 2222.jpg
ren 4713.jpg 3333.jpg
Sylvv
Posts: 2
Joined: 2006-11-20 17:17:10
Location: Germany
Contact:

Rename a complete list of files

Post by Sylvv »

Your tips have been very helpful. Thanx a lot!
WayneMacDarret
Posts: 2
Joined: 2021-04-07 14:53:09

Re: Rename a complete list of files

Post by WayneMacDarret »

Hi, I have a list of 400 pdf to rename and fail with VBA in Excel. I've followed the help folder of the software but the names are not the good ones for the files. For example the files that needs to be rename 0001234 is rename with another number of the list.
Can you please help me renaming the good file with the good name of the list with ant. ?
antp
Site Admin
Posts: 9665
Joined: 2002-05-30 10:13:07
Location: Brussels
Contact:

Re: Rename a complete list of files

Post by antp »

You use the "From list" action?
It takes items from the list in the same order as the files appears in the "Files" page.
You can use the preview to check which file will be renamed to which name, to see where a problem occurs and why the name is not the expected one.
If you need more help, I'll need more details (and possibly some screenshots).
WayneMacDarret
Posts: 2
Joined: 2021-04-07 14:53:09

Re: Rename a complete list of files

Post by WayneMacDarret »

Hi very helpful, It was not working yesterday and this morning I uploaded the files instead of the folder and it has worked perfectly.
So powerfull !!!
Thank you for your help
Post Reply