Resize file names with multirename tool

English support forum

Moderators: white, Hacker, petermad, Stefan2

Post Reply
User avatar
jpcv
Junior Member
Junior Member
Posts: 28
Joined: 2003-02-11, 15:35 UTC
Location: Uruguay

Resize file names with multirename tool

Post by *jpcv »

I've got files with long names and I want to resize this names for a shorter file name.

Before: 12345678901234567890.zip
After: 123456789012.zip

Before: 123456789012345.zip
After: 123456789012.zip

Is there any way to do this?
User avatar
Lefteous
Power Member
Power Member
Posts: 9535
Joined: 2003-02-09, 01:18 UTC
Location: Germany
Contact:

Re: Resize file names with multirename tool

Post by *Lefteous »

jpcv wrote:I've got files with long names and I want to resize this names for a shorter file name.

Before: 12345678901234567890.zip
After: 123456789012.zip

Before: 123456789012345.zip
After: 123456789012.zip

Is there any way to do this?
[N1-12]
chasbas
Junior Member
Junior Member
Posts: 52
Joined: 2003-02-06, 16:01 UTC
Location: New Jersey

Post by *chasbas »

Just select the long-name files, press Ctrl+T to run the Multi-Rename Tool, then type [N1-12] in the "Rename mask: file name" box. Click Start! and you're done.

Obviously in the case you gave there will be a problem since both files will be renamed to the same name. The multi-rename function will warn you about the duplicate name and permit you to abort the rename.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48083
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

A possible solution in this case would be to use a counter, e.g.
[N1-10][C:2]
Author of Total Commander
https://www.ghisler.com
User avatar
jpcv
Junior Member
Junior Member
Posts: 28
Joined: 2003-02-11, 15:35 UTC
Location: Uruguay

Post by *jpcv »

In this case
[N1-10][C:2]

Is the counter only added if duplicates names ar found or is alway added?

Another question:

How can I do to make a replace in file name and not in the extension?

For example, I want to replace all dots in a name for spaces except the dot for the extension.

THX
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48083
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Is the counter only added if duplicates names ar found or is alway added?
Always.
For example, I want to replace all dots in a name for spaces except the dot for the extension.
Search+replace is always acting on the entire name, sorry.
Author of Total Commander
https://www.ghisler.com
User avatar
Hacker
Moderator
Moderator
Posts: 13065
Joined: 2003-02-06, 14:56 UTC
Location: Bratislava, Slovakia

Post by *Hacker »

jpcv,
For example, I want to replace all dots in a name for spaces except the dot for the extension.
You can do this by first replacing the extension by something like X[E], then replacing all the dots with <clear> and then replacing the X with a dot.

HTH
Roman
Mal angenommen, du drückst Strg+F, wählst die FTP-Verbindung (mit gespeichertem Passwort), klickst aber nicht auf Verbinden, sondern fällst tot um.
Post Reply