(Using TC 9.21a 64 bit (2018-08-21))
The first time I start up the multi-rename tool, the default setting for the "Upper/lowercase" button is "Unchanged". Is there a way (by means of a wincmd.ini entry I would suppose) to make the startup default for this button "All lowercase"?
TIA
--
Bob
Multi-rename tool > Upper/lowercase default
Moderators: white, Hacker, petermad, Stefan2
FAQs: Multi-rename tool (MRT) / Save+Load template (MULTIRENAME) / Default setting (MultiRenameLoadSettings)
In Deutsch >>> viewtopic.php?p=335712#p335712
Introduction >> https://www.ghisler.ch/wiki/index.php/Multi-rename_tool
You can save the configuration made in MRT (Multi rename tool)
See [F2 Load/save settings] at the right side in MRT.
Configure the MRT as you want, press F2 and save e.g. as 'mrt_AllLower'
Next you can just [Close] the 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 mrt_AllLower
Parameters:
Icon: WCMICONS.DLL
Tooltip: Load MRT with my saved setting
Another example:
Command: MULTIRENAME <default>
Parameters:
Icon: WCMICONS.DLL
Tooltip: Load MRT <default> clean and fresh without settings from last use
More flexible would be a User-defined command, which you can also use as command in a button,
but additionally you can assign a keyboard shortcut (TC settings > Misc.) to such a User-defined command.
For to reset last settings on start to get a clean and fresh MRT
- launch MRT
- press F2-key
- choose <default> (just press the '<' -key)
Done!
(Tip: if you in need, save this e.g. as "A-CleanDefault" and follow next tip to always start MRT clean and fresh)
For to load the MRT always with such setting as default,
Configure the MRT as you want, press F2 and save that settings.
Next modify the WINCMD.ini
[Configuration]
MultiRenameLoadSettings=YourSavedSettingsNameHere
(just add the line if not already there)
Examples to use above made settings as default settings on every MRT-Start:
MultiRenameLoadSettings=mrt_AllLower
MultiRenameLoadSettings=A-CleanDefault
-or as tip from petermad, just use the default clean settings:
MultiRenameLoadSettings=<default>
Please note that that will "just" launch the MRT with your settings,
selected files are added too,
but you still have to see the dialog and you have to click on [Start!]
For to "rename on click and done" we would have to utilize a script.
(Another example: viewtopic.php?p=317405#p317405)
NEW: load & fire
HISTORY.TXT
12.04.22 Release Total Commander 10.50 beta 1
28.02.22 Added: command MULTIRENAME==<settings> with two equal signs now starts renaming immediately and closes the dialog if successful (32/64)
28.02.22 Added: command MULTIRENAME=<settings> now starts renaming immediately with given saved settings, unless the settings cannot be loaded (32/64)
Example Button:
Command: MULTIRENAME==YourSavedSettingsNameHere
Parameters:
Icon: WCMICONS.DLL
Tooltip: Load MRT with my saved setting and immediately starts renaming
Undo and Reload
Additional tip:
Please note the [Undo]-button.
A Undo is still available even after closing the MRT (as long as there was no other renaming in the meantime)
Also note the "Reload"-button on the left of [Start!].
With that you can load renamed files again to perform a second step.
HTH?
(the same explanation in other words, taken from: viewtopic.php?p=331506#p331506)
Q: How to make [E] box unmarked by default in Multi-Rename Tool
A: Here is a step-by-step instruction:
How-to
- launch MRT
- un-check the "[x]E" option
- F2 save settings as 'noE'
I have now in my wincmd.ini:
[rename]
noE_name=[N]
noE_ext=[E]
noE_params=0|1|1|1|0|0|0|0|0
- - -
create a button
CMD: MULTIRENAME noe
OK
- click that button
MRT opens, with the "[x]E" option un-checked
- - -
Create a usercmd / shortcut
Config>Misc
then selected Ctrl+M as a hotkey,
opened Command
then magnify icon
then chose usercmd.ini,
pressed New,
typed "em_MULTIRENAME saved_rename_settings"
CMD: MULTIRENAME noe
OK
OK
Apply by clicking the hook button
OK
- press Ctrl+M, the MRT launch and the "[x]E" option is un-checked
To remove the usercmd from the default hotkey:
go to Config>Misc , then selected Ctrl+M and click on the magnifying glass,
chose the very first option (Default command, no remapping) at the very top. OK, OK.
- - -
Change the MRT default setting
- modify the wincmd.ini
(See "Help > About TC > INI-Files" and "Config > Change Settings Files Directly")
- search for "MultiRenameLoadSettings"
- not there, so I add that line under [Configuration]
MultiRenameLoadSettings=noe
- save the INI
- press Ctrl+M, the MRT launch and the "[x]E" option is un-checked
- - -
How to make [E] box unmarked by default in Multi-Rename Tool
MRT: MUT: MULTIRENAME <saved rename parameters>
viewtopic.php?p=331506#p331506
Multi-rename tool: Pre- user- configuration // Load settings
viewtopic.php?p=331487#p331487
FAQs: How to create an button
viewtopic.php?p=344803#p344803
FAQs: User-Defined Command (UDC) (usercmd.ini) em_command
viewtopic.php?p=344777#p344777
Introduction >> https://www.ghisler.ch/wiki/index.php/Multi-rename_tool
You can save the configuration made in MRT (Multi rename tool)
See [F2 Load/save settings] at the right side in MRT.
Configure the MRT as you want, press F2 and save e.g. as 'mrt_AllLower'
Next you can just [Close] the 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 mrt_AllLower
Parameters:
Icon: WCMICONS.DLL
Tooltip: Load MRT with my saved setting
Another example:
Command: MULTIRENAME <default>
Parameters:
Icon: WCMICONS.DLL
Tooltip: Load MRT <default> clean and fresh without settings from last use
More flexible would be a User-defined command, which you can also use as command in a button,
but additionally you can assign a keyboard shortcut (TC settings > Misc.) to such a User-defined command.
For to reset last settings on start to get a clean and fresh MRT
- launch MRT
- press F2-key
- choose <default> (just press the '<' -key)
Done!
(Tip: if you in need, save this e.g. as "A-CleanDefault" and follow next tip to always start MRT clean and fresh)
For to load the MRT always with such setting as default,
Configure the MRT as you want, press F2 and save that settings.
Next modify the WINCMD.ini
[Configuration]
MultiRenameLoadSettings=YourSavedSettingsNameHere
(just add the line if not already there)
Examples to use above made settings as default settings on every MRT-Start:
MultiRenameLoadSettings=mrt_AllLower
MultiRenameLoadSettings=A-CleanDefault
-or as tip from petermad, just use the default clean settings:
MultiRenameLoadSettings=<default>
Please note that that will "just" launch the MRT with your settings,
selected files are added too,
but you still have to see the dialog and you have to click on [Start!]
For to "rename on click and done" we would have to utilize a script.
Spoiler: >Example VBScript<
Code: Select all
'VBScript to rename selected files
'ATTENTION: in THIS script there is NO error handling, it simple renames 'A' to 'B'!!!
'Stefan 13:35 13.09.2018
'Found at: https://ghisler.ch/board/viewtopic.php?p=347067#p347067
' --Save as my.vbs in TC-folder
' --Create Button:
' Command: "%Commander_Path%\my.vbs"
' Parameters: "%F"
' Start path:
' Icon: WCMICONS.DLL
' --select files
' --press button
IF (WScript.Arguments.Count>0) Then vTCsPara=WScript.Arguments(0) ELSE WScript.Quit
SET strTCTempFile = CreateObject("Scripting.FileSystemObject").OpenTextFile(vTCsPara, 1)
SET FSO = CreateObject("Scripting.FileSystemObject")
Do While Not strTCTempFile.AtEndOfStream
strCurrFile = strTCTempFile.ReadLine
IF Right(strCurrFile,1) <> "\" THEN ' it is a File, no Folder\
'strBaseName = FSO.GetBaseName(strCurrFile)
'strExtensio = FSO.GetExtensionName(strCurrFile)
' ' ' Here is your Business:
strNewName = replace(strCurrFile,"x","U")
' ' ' add here as many commands as you like
' Here we rename the file
FSO.MoveFile strCurrFile, strNewName
END IF
LOOP
NEW: load & fire
HISTORY.TXT
12.04.22 Release Total Commander 10.50 beta 1
28.02.22 Added: command MULTIRENAME==<settings> with two equal signs now starts renaming immediately and closes the dialog if successful (32/64)
28.02.22 Added: command MULTIRENAME=<settings> now starts renaming immediately with given saved settings, unless the settings cannot be loaded (32/64)
Example Button:
Command: MULTIRENAME==YourSavedSettingsNameHere
Parameters:
Icon: WCMICONS.DLL
Tooltip: Load MRT with my saved setting and immediately starts renaming
Undo and Reload
Additional tip:
Please note the [Undo]-button.
A Undo is still available even after closing the MRT (as long as there was no other renaming in the meantime)
Also note the "Reload"-button on the left of [Start!].
With that you can load renamed files again to perform a second step.
HTH?
(the same explanation in other words, taken from: viewtopic.php?p=331506#p331506)
Q: How to make [E] box unmarked by default in Multi-Rename Tool
A: Here is a step-by-step instruction:
How-to
01.12.08 Release Total Commander 7.50 Beta 1
30.01.08 Added: New internal command with parameters: MULTIRENAME <saved rename parameters>
opens the multi-rename dialog box with the specified rename parameters.
Giving an invalid name will set all options to the default values
- launch MRT
- un-check the "[x]E" option
- F2 save settings as 'noE'
I have now in my wincmd.ini:
[rename]
noE_name=[N]
noE_ext=[E]
noE_params=0|1|1|1|0|0|0|0|0
- - -
create a button
CMD: MULTIRENAME noe
OK
- click that button
MRT opens, with the "[x]E" option un-checked
- - -
Create a usercmd / shortcut
Config>Misc
then selected Ctrl+M as a hotkey,
opened Command
then magnify icon
then chose usercmd.ini,
pressed New,
typed "em_MULTIRENAME saved_rename_settings"
CMD: MULTIRENAME noe
OK
OK
Apply by clicking the hook button
OK
- press Ctrl+M, the MRT launch and the "[x]E" option is un-checked
To remove the usercmd from the default hotkey:
go to Config>Misc , then selected Ctrl+M and click on the magnifying glass,
chose the very first option (Default command, no remapping) at the very top. OK, OK.
- - -
Change the MRT default setting
- modify the wincmd.ini
(See "Help > About TC > INI-Files" and "Config > Change Settings Files Directly")
- search for "MultiRenameLoadSettings"
- not there, so I add that line under [Configuration]
MultiRenameLoadSettings=noe
- save the INI
- press Ctrl+M, the MRT launch and the "[x]E" option is un-checked
- - -
How to make [E] box unmarked by default in Multi-Rename Tool
MRT: MUT: MULTIRENAME <saved rename parameters>
viewtopic.php?p=331506#p331506
Multi-rename tool: Pre- user- configuration // Load settings
viewtopic.php?p=331487#p331487
FAQs: How to create an button
viewtopic.php?p=344803#p344803
FAQs: User-Defined Command (UDC) (usercmd.ini) em_command
viewtopic.php?p=344777#p344777