Is there a way to make the rename forget?

English support forum

Moderators: Hacker, petermad, Stefan2, white

Post Reply
Dazzer
Junior Member
Junior Member
Posts: 87
Joined: 2016-12-14, 08:35 UTC
Location: Amsterdam

Is there a way to make the rename forget?

Post by *Dazzer »

Hi folks,

Is there a way to make the multi-rename window "forget" the previous action?

So at the moment, if (for example) i use it to remove all zeros from a file name, next time i open it, that remove-zero instruction is still there.

I've made a big mess of things a few times when i wanted to remove all zeros, then, half an hour later i want to append some file names, which happens on the left side, but didn't notice the remove-zero instruction still lurking maliciously over on the right!

Ideally i'd like to have two buttons for opening the multi-rename: one which remembers the last setting and one which forgets all previous.

Any ideas? ... Thanks!
User avatar
tuska
Power Member
Power Member
Posts: 4046
Joined: 2007-05-21, 12:17 UTC

Re: Is there a way to make the rename forget?

Post by *tuska »

Hi,
Save your desired DEFAULT setting:
Ctrl+M, F2, Save settings, e.g. name: (A-CleanDefault)

wincmd.ini - section [Configuration]

Code: Select all

MultiRenameLoadSettings=(A-CleanDefault)
; MultiRenameLoadSettings=NameOfMySavedSetting
F1 - Help: MultiRenameLoadSettings= wrote: MultiRenameLoadSettings= Defines with what settings the multi-rename tool will start:
(empty):            Start with last used settings (not remembered after closing)
Name:               Load settings which were stored under the given name
Unknown name: Start with default settings
Button with command

Code: Select all

MULTIRENAME=NameOfMySavedSetting
- OR -

Code: Select all

MULTIRENAME==NameOfMySavedSetting
F1 - Help: MULTIRENAME wrote: 12. MULTIRENAME saved_rename_settings opens the multi-rename tool with the specified settings.
An equal sign "=" in front of the name will start the renaming immediately if the settings can be loaded,
two equal signs will close the multi-rename tool if there were no errors.
User avatar
nsp
Power Member
Power Member
Posts: 1912
Joined: 2005-12-04, 08:39 UTC
Location: Lyon (FRANCE)
Contact:

Re: Is there a way to make the rename forget?

Post by *nsp »

To have two buttons/shortcut, you can let the normal mutirename to work as usual and have a way to launch it clean using a default configuration.
Define a user command "em_mrt"
command: MULTIRENAME <Default>

You can save whatever you want as a default start parameter.
Dazzer
Junior Member
Junior Member
Posts: 87
Joined: 2016-12-14, 08:35 UTC
Location: Amsterdam

Re: Is there a way to make the rename forget?

Post by *Dazzer »

Got it, thanks, so the trick is to have a button that calls up an empty preset, and if i want to repeat a rename, i just do ctrl + M.

Just one other question: where and how are the presets saved? I mean where, physically, on my hard disk? (i know how to do it in the multi-rename window, but my TC install is portable, so i'm curious how it moves around my different computers).
User avatar
tuska
Power Member
Power Member
Posts: 4046
Joined: 2007-05-21, 12:17 UTC

Re: Is there a way to make the rename forget?

Post by *tuska »

The templates are stored in the wincmd.ini in the [rename] section,
unless they have been redirected to another file using RedirectSection= - please see the example below.

[rename]
RedirectSection=wincmd_Rename.ini

wincmd.ini: Menu "Help" -> About Total Commander...
Last edited by tuska on 2024-10-24, 10:21 UTC, edited 1 time in total.
User avatar
Horst.Epp
Power Member
Power Member
Posts: 6951
Joined: 2003-02-06, 17:36 UTC
Location: Germany

Re: Is there a way to make the rename forget?

Post by *Horst.Epp »

Dazzer wrote: 2024-10-24, 10:09 UTC Just one other question: where and how are the presets saved? I mean where, physically, on my hard disk? (i know how to do it in the multi-rename window, but my TC install is portable, so i'm curious how it moves around my different computers).
In your Wincmd.ini of course.
For this reason, it's portable.

Tuska was faster :)
Windows 11 Home, Version 24H2 (OS Build 26100.3915)
TC 11.51 x64 / x86
Everything 1.5.0.1391a (x64), Everything Toolbar 1.5.2.0, Listary Pro 6.3.2.88
QAP 11.6.4.2.1 x64
User avatar
nsp
Power Member
Power Member
Posts: 1912
Joined: 2005-12-04, 08:39 UTC
Location: Lyon (FRANCE)
Contact:

Re: Is there a way to make the rename forget?

Post by *nsp »

Dazzer wrote: 2024-10-24, 10:09 UTC Got it, thanks, so the trick is to have a button that calls up an empty preset, and if i want to repeat a rename, i just do ctrl + M.

Just one other question: where and how are the presets saved? I mean where, physically, on my hard disk? (i know how to do it in the multi-rename window, but my TC install is portable, so i'm curious how it moves around my different computers).
It is in the wincmd.ini you can see/edit it using %COMMANDER_INI% as a command directly in the "command line" or as a button or ....
If you define some redirect, you will have additional ini file by redirected sections.

The place about M.R.T is on the [rename] section you will see ????_name ????_ext ????_search ????_replace ????_params values for the saved information.
Dazzer
Junior Member
Junior Member
Posts: 87
Joined: 2016-12-14, 08:35 UTC
Location: Amsterdam

Re: Is there a way to make the rename forget?

Post by *Dazzer »

Great, many thanks all!
Post Reply