Is there a way to make the rename forget?
Moderators: Hacker, petermad, Stefan2, white
Is there a way to make the rename forget?
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!
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!
Re: Is there a way to make the rename forget?
Hi,
Save your desired DEFAULT setting:
Ctrl+M, F2, Save settings, e.g. name: (A-CleanDefault)
wincmd.ini - section [Configuration]
; MultiRenameLoadSettings=NameOfMySavedSetting
- OR -
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)
Button with commandF1 - 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
Code: Select all
MULTIRENAME=NameOfMySavedSetting
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.
Re: Is there a way to make the rename forget?
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.
Define a user command "em_mrt"
command: MULTIRENAME <Default>
You can save whatever you want as a default start parameter.
Re: Is there a way to make the rename forget?
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).
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).
Re: Is there a way to make the rename forget?
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...
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.
Re: Is there a way to make the rename forget?
In your Wincmd.ini of course.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).
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
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
Re: Is there a way to make the rename forget?
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 ....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).
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.
Re: Is there a way to make the rename forget?
Great, many thanks all!