Batch Renaming

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Post Reply
audiom3
Posts: 2
Joined: 03 May 2023 17:31

Batch Renaming

Post by audiom3 »

Hi everyone. I just bought a lifetime update key thinking this would be a simple thing to use over Windows File Explorer. But I am having some difficulty with a command. Sorry to start a new thread over something that is no doubt simple for most of you. I am trying to batch rename (?) my bluray movies & series rips. There can be up to 26 files in each season which look like this:

Series Name (1997) S1E01_t01.mkv
Series Name (1997) S1E02_t02.mkv
Series Name (1997) S1E03_t03.mkv
Series Name (1997) S1E04_t04.mkv
Series Name (1997) S1E05_t01.mkv
Series Name (1997) S1E06_t02.mkv
Series Name (1997) S1E07_t03.mkv
Series Name (1997) S1E08_t04.mkv

I have the extension hidden but it shows up whilst editing, so I've added it (.mkv) to each file as above. What I want to do is simply remove the _txx after each title. Where xx equals the track number found on the disc itself in the order it is read. I tried to send a PM but being as I am a new member, the board would not allow. Hopefully this is ok. Thank you for any help.

highend
Posts: 14925
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: Batch Renaming

Post by highend »

The usual pattern based answer would be:

Select the files to be renamed, right click -> Rename Special -> RegExp Rename...

(_t\d+?)(\.[^.]+?)$ > $2
One of my scripts helped you out? Please donate via Paypal

audiom3
Posts: 2
Joined: 03 May 2023 17:31

Re: Batch Renaming

Post by audiom3 »

@highend, thank you very much. I will try this tonight after work. Much appreciated!

Post Reply