MRT: Renaming start of files - changing numbering

English support forum

Moderators: Hacker, petermad, Stefan2, white

Post Reply
bogordo
Member
Member
Posts: 174
Joined: 2019-12-06, 09:07 UTC

MRT: Renaming start of files - changing numbering

Post by *bogordo »

Hi,

I'm trying the rename tool but don't get how i can rename changing only the start part "XX - ", thus, moving from here:
16 - Crear bloques
17 - Modos de edición
18 - Crear muros

to here:
1.1 - Crear bloques
1.2 - Modos de edición
1.3 - Crear muros

This is, changing the starting part and adding an incremental number and subnamber... :roll:
TC license #346559
User avatar
Stefan2
Power Member
Power Member
Posts: 4281
Joined: 2007-09-13, 22:20 UTC
Location: Europa

Re: Renaming start of files

Post by *Stefan2 »

Have a backup!


1)
Add a '1.' plus [C] numbering 1, 2, 3,... plus a marker like # to get the numbers to remove
1.[C]#[N]

1.1#16 - Crear bloques
1.2#17 - Modos de edición
1.3#18 - Crear muros

Rename

2)
Reload
RegEx Search for '#\d+ -' and Replace with ' -'

1.1 - Crear bloques
1.2 - Modos de edición
1.3 - Crear muros



Me think you can both steps in one go,... try it and take look at the preview.



 
User avatar
Dalai
Power Member
Power Member
Posts: 10024
Joined: 2005-01-28, 22:17 UTC
Location: Meiningen (Südthüringen)

Re: Renaming start of files

Post by *Dalai »

Rename mask:

Code: Select all

1.[C][N4-]
2Stefan2
Why use RegEx for this simple thing? OK, could be useful (or even necessary) when the number in the existing file names have different lengths, i.e. are lower than 10 and/or higher than 99.

Regards
Dalai
#101164 Personal licence
Ryzen 5 2600, 16 GiB RAM, ASUS Prime X370-A, Win7 x64

Plugins: Services2, Startups, CertificateInfo, SignatureInfo, LineBreakInfo - Download-Mirror
bogordo
Member
Member
Posts: 174
Joined: 2019-12-06, 09:07 UTC

Re: Renaming start of files

Post by *bogordo »

Thank you very much, both ways working just fine, Stefan2's way in one step too :)

Best regards,
TC license #346559
User avatar
Stefan2
Power Member
Power Member
Posts: 4281
Joined: 2007-09-13, 22:20 UTC
Location: Europa

Re: Renaming start of files

Post by *Stefan2 »

2bogordo, glad you found your solution.

Dalai wrote: 2020-03-21, 14:12 UTC 2Stefan2
Why use RegEx for this simple thing? OK, could be useful ...
Maybe I am always one step ahead :mrgreen: , and (as you mentioned) RegEx even works on file names like

6 - Crear bloques
17 - Modos de edición
918 - Crear muros

:D        or it's just I like regex much (or i am just not thinking about the [N4-]-solution :roll: )


 
Post Reply