cm_RenameOnly - rename with predefined file name or extension

English support forum

Moderators: white, Hacker, petermad, Stefan2

Post Reply
Operater
Junior Member
Junior Member
Posts: 17
Joined: 2008-12-10, 10:05 UTC

cm_RenameOnly - rename with predefined file name or extension

Post by *Operater »

hi,
during the working day, I often change extension of same file from xlam(or xlsm) to zip, and vice versa.
I added command a in user (Start) menu cm_RenameOnly, how I can add a parameter for new (default) file name or extension?

[user]
menu1=CustomRename
cmd1=cm_RenameOnly
param1=... new ext ....

maybe cm_RenameOnly is wrong command ?

thnax
1. by computer
2. install TC
3. install OS
User avatar
Stefan2
Power Member
Power Member
Posts: 4173
Joined: 2007-09-13, 22:20 UTC
Location: Europa

Re: cm_RenameOnly - rename with predefined file name or extension

Post by *Stefan2 »

- open MRT (Multi rename tool) CTRL+M
- Configure the MRT as you want,
- press F2 and save e.g. as 'YourSavedSettingsNameHere'
- Next you can just [Close] the MRT-tool.


On next launch of the MRT, just got to F2 again and load your saved setting.



To load such saved setting from a button, use internal command 'MULTIRENAME'
Example Button:
Command: MULTIRENAME YourSavedSettingsNameHere
Parameters:
Icon: WCMICONS.DLL
Tooltip: Load MRT with my saved setting




NEW: load & fire >>> HISTORY.TXT >>> 12.04.22 Release Total Commander 10.50 beta 1

Command: MULTIRENAME     YourSavedSettingsNameHere (with a space will "just" launch the MRT with your settings)
Command: MULTIRENAME=YourSavedSettingsNameHere (starts renaming immediately with given saved settings and keeps the dialog open)
Command: MULTIRENAME==YourSavedSettingsNameHere (with two equal signs > starts renaming immediately and closes the dialog if successful)



More there >>> https://ghisler.ch/board/viewtopic.php?p=347067#p347067

- -

Also you can use TC-parameter "%F" and a scripting language of your OS to loop over the %F-temp file and rename the selected files.
User avatar
white
Power Member
Power Member
Posts: 4647
Joined: 2003-11-19, 08:16 UTC
Location: Netherlands

Re: cm_RenameOnly - rename with predefined file name or extension

Post by *white »

Operater wrote: 2024-05-12, 19:11 UTC maybe cm_RenameOnly is wrong command ?
Yes, try cm_RenMov. (Search the Help for cm_RenMov to find more info.)

For example:

Code: Select all

[user]
menu1=Rename to .zip
cmd1=cm_RenMov
param1=/GT="*.zip"
Operater
Junior Member
Junior Member
Posts: 17
Joined: 2008-12-10, 10:05 UTC

Re: cm_RenameOnly - rename with predefined file name or extension

Post by *Operater »

wow!
thanks guys!
both solutions are excellent!

thanks white and Stefan2 !!!
1. by computer
2. install TC
3. install OS
Post Reply