increasing number every 3 files

Advanced Renamer forum
#1 : 13/10-24 08:25
Paul Weinling
Posts: 3
Hi I hope someone can help.
I have a lot of episode files that need renaming/ numbering.
I need to add eg. Gotham - S01E01 - filename.jpg
Gotham - S01E01 - filename.mkv
Gotham - S01E01 - filename.nfo
Then it would go Gotham - S01E02 - filename.jpg etc..
I know how to do Gotham - S01E0 but don't know how to increase the numbering every 3 files.
Thanks
#2 : 13/10-24 10:41
Delta Foxtrot
Posts: 364
Reply to #1:

Hi Paul, welcome,

Can you give us some examples of the filenames you are starting with? It's hard to say what the process might be without knowing both what results you seek and what you are working with to start.

A screenshot of files in, say, an Explorer window would be very helpful. Or alternatively something like:
fileStartName -> fileEndName
fileStartName2 -> fileEndName2
etc.

Best,
DF
#3 : 13/10-24 17:28
Paul Weinling
Posts: 3
Reply to #2:
Hi Thanks for replying.
Here is a screenshot (hope it displays not sure how to do this)
[img]https://i.imgur.com/XZ7k2WW.png[/img]
As you can see each episode has 3 files. So I would want to add "Batman - S01E01 - "at the begining of each file in the green box (episode 1) ending up with a filename like this -
Batman - S01E01 - Batman - Gotham Nights 001 (2020)
The next 3 files (episode 2) it would change to "Batman - S01E02 - " having filename like this -
Batman - S01E02 - Batman - Gotham Nights 002 (2020)
As you can see it is the E0 number that changes every 3 files.
#4 : 13/10-24 19:10
Miguel
Posts: 163
Reply to #3:
Hi,
I think that what you want can be done with 2 Replace methods and the help of Regular expression.

1 METHOD.
REPLACE; (\w.+) (\d.+)\s
REPLACE WITH: Batman - S01E$2 - $1 $2 add a space after the last $2
Regular expression: Yes

METHOD 2
Replace: 00
Replace with: 0
Occurence: First
Apply to Name

https://drive.google.com/file/d/1nlmh0pgW6bHfdV0 YqB6bbqmFmWMAKIUU/view?usp=drive_link

I hope this will help you

Miguel

edited: 13/10-24 19:24
#5 : 13/10-24 21:28
Paul Weinling
Posts: 3
Reply to #4:
Miguel thank you for your effort. I used method 1 and is just what I wanted.
Cheers
#6 : 18/10-24 07:12
Kathy Barrera
Posts: 1