MRT: each word uppercase, but extension too.
Moderators: white, Hacker, petermad, Stefan2
MRT: each word uppercase, but extension too.
Hi!
I'm having a little problem using TC 8.51a MRT (maybe it's my fault, due to missing some detail, option, checkmark or something)
I need to multirename some folders using 'First of each word uppercase' mode. It works fine for the most of the folders, but some not.
I've finally find the pattern: the folders which have a dot (.) in their names stop renaming using the mentioned mode after the dot.
Examples:
folder name -> Folder Name (OK!)
folder with a longer name -> Folder With A Longer Name (OK!)
folder named by mr. john doe -> Folder Named By Mr. john doe (WRONG!)
Any suggestion on how to solve this?
Maybe TC gets the part after the dot (.) as an extension, so it's not working the way I need.
Thanks!
I'm having a little problem using TC 8.51a MRT (maybe it's my fault, due to missing some detail, option, checkmark or something)
I need to multirename some folders using 'First of each word uppercase' mode. It works fine for the most of the folders, but some not.
I've finally find the pattern: the folders which have a dot (.) in their names stop renaming using the mentioned mode after the dot.
Examples:
folder name -> Folder Name (OK!)
folder with a longer name -> Folder With A Longer Name (OK!)
folder named by mr. john doe -> Folder Named By Mr. john doe (WRONG!)
Any suggestion on how to solve this?
Maybe TC gets the part after the dot (.) as an extension, so it's not working the way I need.
Thanks!
I Love Total Commander!
Re: Question about Multi Rename Tool
The "." is understood as separator between name and extension (even if it make no sense for folder...) What you can do is to tick the [E] option (also replace in extension) this is normally located near the Replace With : Text Field on the next line.sidefx88 wrote:Hi!
I'm having a little problem using TC 8.51a MRT (maybe it's my fault, due to missing some detail, option, checkmark or something)
I need to multirename some folders using 'First of each word uppercase' mode. It works fine for the most of the folders, but some not.
I've finally find the pattern: the folders which have a dot (.) in their names stop renaming using the mentioned mode after the dot.
Examples:
folder name -> Folder Name (OK!)
folder with a longer name -> Folder With A Longer Name (OK!)
folder named by mr. john doe -> Folder Named By Mr. john doe (WRONG!)
Any suggestion on how to solve this?
Maybe TC gets the part after the dot (.) as an extension, so it's not working the way I need.
Thanks!
I don't think there's a way to do this out-of-the-box,
simply because TC sees the last dot as ("virtual") extension.
(no matter how many dots exist before that)
So you have no choice but to do this in two MRT steps, for example:
First:
Search:
Replace:
i.e. two space characters (so you can distinguish them later),
and choose capitalization (it's done directly after s&r)
2nd: restore original dots
(no need to close MRT, just use the "(next step)" button or F5)
Search:
(two space characters)
Replace:
Now deselect capitalization!
Of course you can choose some other non-conflicting characters as temporal replacement. (maybe ^ or @)
simply because TC sees the last dot as ("virtual") extension.
(no matter how many dots exist before that)
So you have no choice but to do this in two MRT steps, for example:
First:
Search:
Code: Select all
.
Code: Select all
and choose capitalization (it's done directly after s&r)
2nd: restore original dots
(no need to close MRT, just use the "(next step)" button or F5)
Search:
Code: Select all
Replace:
Code: Select all
.
Of course you can choose some other non-conflicting characters as temporal replacement. (maybe ^ or @)
TC plugins: PCREsearch and RegXtract
Just use TC version 5.51 (version 6.01 should works this way too):
HISTORY.TXT
HISTORY.TXT
Code: Select all
23.01.04 Added: Multi-rename tool: First letter per word uppercase: Don't do this in the file extension
Multi Rename Tool: word uppercase whole name incl. extension
sidefx88 wrote:I need to multirename some folders using 'First of each word uppercase' mode.
: the folders which have a dot (.) in their names stop renaming using the mentioned mode after the dot.
I would just use e.g. "Scarabée Software Renamer: Siren":
** Download Siren Renamer from
http://scarabee-software.net/en/download.html
** The older 2.01 version (400kb) is just fine.
** Unpack it to "%Commander_Path%\Tools\Siren"
- - -
Preparations:
** Create an button:
Command: %Commander_Path%\Tools\Siren\Siren.exe
Parameter: %S
Icon: %Commander_Path%\Tools\Siren\Siren.exe
Tooltip:Start Siren Renamer with [selected] file(s)
** If you want, create a user defined tool in usercmd.ini, like:
[em_Siren]
cmd=%Commander_Path%\Tool\Siren\Siren.exe
param=%S
menu=Launch Siren Renamer with [selected] file(s)
** You can even assign an shortcut in wincmd.ini to that em_ command:
[Shortcuts]
;Call Siren by pressing Ctrl+Alt+M:
CA+M=em_Siren
(See TCs' help for more)
- - -
Work:
Put your cursor on the file to rename,
(or select a few files for renaming,)
and execute your new user command.
Example:
Q: I need to multirename some files, both base name and extension, using 'First of each word uppercase' mode.
A: In Siren enter %Uf as expression.
Explanation:
%f means: work on the whole file name.
'U' means "first character of each word upper case, the others lower case.
The words are separated by the characters specified in "Options/Modifications"."
------------------------------------------------------------------------------------------------------------
Siren is a freeware file renaming program
- portable, highly flexible, powerfully -
If it's looking tricky it's easy to rename with Siren.
http://www.scarabee-software.net/en/siren.html
Siren is a freeware file renaming program - portable, flexible, powerfully, with preview, perl regex, meta data extraction,...
No installation needed, unzip and run. Siren stores it settings into an INI-file, not in the Registry.
If it's looking tricky, it's easy to rename with Siren. Press the F1-key while you are in Siren to read more about.
Homepage: http://www.scarabee-software.net/en/siren.html (The older v2 is enough and only 400kB against 10MB for v3, but v3 works on Linux too)
Multi Rename Tool: Uppercase first char extension
With TC MUT:sidefx88 wrote:I need to multirename some folders using 'First of each word uppercase' mode.
: the folders which have a dot (.) in their names stop renaming using the mentioned mode after the dot.
Filename box: [F][N].[E1][L][E2-]
Explanation:
[F] First letter of each word uppercase after this position, all others lowercase
[N] old file name, WITHOUT extension
All characters after this position in uppercase
[E1] first sign of Extension
[L] All characters after this position in lowercase
[E2-] second till last sign of Extension
How about just:
Filename field: [F][N]
Extension field: [F][E]
That seems to work
Filename field: [F][N]
Extension field: [F][E]
That seems to work
License #524 (1994)
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
It seems that you can even omit the [F] for the extension !sidefx88 wrote:Thanks Stefan2 and petermad!!
I've tried with the very simple [F][N] / [F][E] method petermad suggested, and worked fine!
So there is to my understanding two bugs/inconsistencies...
- the "First Letter or each word Uppercase" does not take into account the [E] option.
-the latest "[Case operator]" in Name is also used for Extension field
Strange, when I tried yesterday it didn't seem to work without the [F][E] - but now when I try again I can confirm that [F][N] is enough
License #524 (1994)
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar