Copy / replace names of one file type to those of another file type

Advanced Renamer forum
#1 : 22/06-24 01:31
Yet another Steve
Posts: 4
I would like to match the file names of some tv shows (.mp4) to subtitle files I also have(.srt). The beginning of the files match, but the video has additional text I want copied to the subtitle files.

Example

S01E01 Population Zero 4x3 DVD H264 2Channel.mp4
s01e01.srt
S01E02 Survival of the Fittest 4x3 DVD H264 2Channel.mp4
s01e02.srt
S01E03 Operation Firefly 4x3 DVD H264 2Channel.mp4
s01e03.srt
S01E04 Day of the Robot 4x3 DVD H264 2Channel.mp4
s01e04.srt

so they become...
S01E01 Population Zero 4x3 DVD H264 2Channel.mp4
S01E01 Population Zero 4x3 DVD H264 2Channel.srt
and so on

I would like the .srt files to have the same name as the .mp4 files. Is there a way to do this, maybe with some kind of 'IF the first 6 characters match, THEN rename .srt file with the matching .mp4 file"? I have several TV shows seasons to work through.

Thanks in advance (edited for typos)

edited: 22/06-24 01:33
#2 : 22/06-24 04:23
Delta Foxtrot
Posts: 323
Reply to #1:

Hello Yet,

As long as all .mp4 files in the directory have corresponding .srt files, this is trivial using the LIST method.

In Windows Explorer sort the files by file type, so all the video files are together. Drag them to a blank ARen file list. If necessary click on the column header for Filename until they are sorted in ascending order.

Add a LIST method.

Click on Populate list, click Yes to load all file names.

Clear the Filename list, load your subtitle files and ensure that they are in the correct order to match your list of video files.

Run the batch and the subtitle files will be renamed corresponding to the names of the video files.

(The above two paragraphs are taken directly from a previous answer that I found by searching on the term ".srt"; see thread https://www.advancedrenamer.com/forum_thread?for um_id=13267
Thanks yet again to David Lee. It's always a good idea to try a search for previous answers first.)

Screenshot of your example files: https://drive.google.com/file/d/1GOTHIt-LLjpisfP ouKRXAF_GUYrbqb_1/view?usp=sharing

Have fun!
DF

edited: 22/06-24 04:25
#3 : 22/06-24 18:25
Yet another Steve
Posts: 4
Reply to #2:
Could someone please explain how I can create the .aren file list with the filenames? I can use Directory List & Print to get the file names I need and and copy them to a .txt file, but I figure there's a way to do this within Advanced Renamer itself.
#4 : 22/06-24 19:20
Delta Foxtrot
Posts: 323
Reply to #3:

Yet,

If you look at the screenshot I included (on the left side on the LIST method panel) you will see a button labeled "Populate list". Whatever filenames are in the file list (on the right side) will then be "populated" into the list method data area.

EDIT: From there you can, if you wish, save the list as a text file. END EDIT

Was I not clear? I'm not being rude, just trying to make sure I'm explaining clearly.

Best,
DF

edited: 22/06-24 19:33
#5 : 22/06-24 23:56
Yet another Steve
Posts: 4
Reply to #4:
Ahh, got it, I was overcomplicating it. When I drag & dropped the files into the right-side, and saw the 'Load' and 'Save' buttons on the 'List' Add Method, I thought I had to create a 'ARen' txt / list file and add the names to it for the program to know what to rename.

(edit) I wish the User Guide went into a bit more detail on how to use 'List' methods. When I saw that you can use 'Tags', I really went on a deep tangent of web searching for the wrong kind of help.

edited: 22/06-24 23:59