Truncate

Advanced Renamer forum
#1 : 13/04-13 03:56
Doug Girard
Doug Girard
Posts: 1
I'm trying to make sure files are not longer than x characters, say 15 characters. How can I do this? If the remove or trim options are it, I'm not clear how to properly use them. Any help would be appreciated.


13/04-13 03:56
#2 : 13/04-13 09:23
Stefan
Stefan
Posts: 264
Reply to #1:

>>I'm trying to make sure files are not longer than x characters,


Use Remove

http://www.advancedrenamer.com/user_guide/metho d_remove

Remove
Count: 999
Start: 15
Apply to: Name




Even better would be shorten the names beforehand with some considerations:

- replace doubled letters by a single one: Madonna > Madona
Replace:
Text: (.)\1
With: $1
Occ: All
[X] RegEx

- shorten know pattern: Remix > RMX
Replace:
Text: Remix\Feat\Remastered
With: RMX\ft\Rema
Occ: All

- remove blanks: Word1 - Word2 > Word1-Word2
Replace:
Text: #
With: ~
Occ: All
(instead off '#' write an blank, instead of '~' leave the box empty)

- remove vowels: Madona > Mdn
Replace:
Text: a\e\i\o\u
With: ~
Occ: All
(instead of '~' leave the box empty)

- delete everything after 15 signs
Remove
Count: 999
Start: 15
Apply to: Name



.

----------
If this tool had saved you time, perhaps you want to donate an Dollar to Kim?
See http://www.advancedrenamer.com/download >>> [Donate] button.


13/04-13 09:23