The numbering of files

English support forum

Moderators: Hacker, petermad, Stefan2, white

Post Reply
vojtisekk
Junior Member
Junior Member
Posts: 2
Joined: 2013-09-12, 08:12 UTC

The numbering of files

Post by *vojtisekk »

Hello, how do i name the files in a row if i want to change just the ending number. See the exampe below:
Fol001_001.tif, Fol001a_002, Fol002_003.tif, Fol002a_005.tif -and more.
I just want to change the last three digits to be like 001, 002, 003 tif without changing the "FoL" part of the name of the file!
I tried the multiple rename tool, but there must be something else, this did not work :)
Thank you very much for your help!
Vojtech
User avatar
MVV
Power Member
Power Member
Posts: 8711
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

Try name template [N1-3][C001:3][N7-] in multi-rename tool. It will change only characters 4-6 in names leaving the rest as is.
vojtisekk
Junior Member
Junior Member
Posts: 2
Joined: 2013-09-12, 08:12 UTC

Post by *vojtisekk »

Hello, thank you, but it did not change the digits. I need to have the numbers in order - from 1 onwards. Maybe there is another program? Thank you very much anyway!
User avatar
Stefan2
Power Member
Power Member
Posts: 4281
Joined: 2007-09-13, 22:20 UTC
Location: Europa

MultiRenameTool change digits to serialize

Post by *Stefan2 »

vojtisekk wrote:, but it did not change the digits.
1) You have to enter that into the 'file name' box, not in the Search & Replace box of the MRT.

2) MVV had shown you to change the first three digits.
You can modify that expression to 'change the last three digits' instead.


For more help press F1 key while in MRT



.
User avatar
Stefan2
Power Member
Power Member
Posts: 4281
Joined: 2007-09-13, 22:20 UTC
Location: Europa

Post by *Stefan2 »

Oh, sorry, I realize that one is a bit tricky due to the different length of the first part before the underscore.

So here is a solution for you:



BEFORE:
Fol001_001.tif
Fol001a_002.tif
Fol002_003.tif
Fol002a_005.tif

AFTER:
Fol001_001.tif
Fol001a_002.tif
Fol002_003.tif
Fol002a_004.tif

Rule:
Keep all signs from start ([N1-]) but last 3 (means: till the fourt-last one (-4)).
Then add a new serialize numbering ([C]) padding to length of 3.

USE:
Enter this into the 'Rename mask: file name' box:
[N1--4][C:3]


.
User avatar
MVV
Power Member
Power Member
Posts: 8711
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

vojtisekk,
Sorry I misunderstood you a bit, I thought you need to change first three digits because of mentioned "FoL" part. :D
You can use Stefan2's suggestion with negative indexes, also such operation may be done with regex: name template [C1:3][N] and replace ^(\d\d\d)(.*)\d\d\d([^\d]*)$ with $2$1$3 (enable regex checkbox). It will change last three-digits block even if there are letters after it.
Post Reply