Renaming file with the name of other file in the same folder

Advanced Renamer forum
#1 : 30/01-20 15:23
Mario Alvarez
Mario Alvarez
Posts: 18
Is it possible to rename a file with the name of other file in the same folder (they both have different extensions)?

Example:

I have 3 files in the same folder:

Name of the Movie (2009).mp4

Name of the Movie (2009)-spa.srt

English.srt

How can I rename the file "English.srt" to "Name of the Movie (2009)-eng.srt?

Note: the name of the folder is "Name of the Movie (2009_name of the director" and I don't want to change it.

Thank you very much.


30/01-20 15:23
#2 : 30/01-20 22:29
David Lee
David Lee
Posts: 343
I'm assuming that you mistyped the folder name and it should have been "Name of the Movie (2009)_name of the director".

Try using two Replace methods in the same method list:

1)
Text to be replaced: English.srt
Replace with: <DirName>.srt
Use regular expressions: Not checked
Apply to: Name and extension

2)
Text to be replaced: _.*\.srt
Replace with: -eng.srt
Use regular expressions: Checked
Apply to: Name and extension

Drag all your folders into the List and select Add the files in the folders
Each instance of "English.srt" will be renamed based on its respective folder name.


30/01-20 22:29