Mutli-Rename Script v1.5c (Unicode)

Discuss and announce Total Commander plugins, addons and other useful tools here, both their usage and their development.

Moderators: Hacker, petermad, Stefan2, white

User avatar
Lefteous
Power Member
Power Member
Posts: 9537
Joined: 2003-02-09, 01:18 UTC
Location: Germany
Contact:

Post by *Lefteous »

2majkinetor !
Please remove or update all of my plugins which can be found on googlecode.
brahman
Senior Member
Senior Member
Posts: 208
Joined: 2006-04-26, 13:27 UTC

Post by *brahman »

Great plugin!

It would be nice if the entry fields could grow when one resizes the window, they feel a bit cramped.

Also the font for the buttons and window is not easy on the eyes. Could you please make it bigger - there is enough room ... (and some of the buttons who would then be cramped could be renamed f.e. "Result List" to "Results").

Cosmetic: "File name" should have a capital N for consistency.
Regards, Brahman
Win10 & 11 Pro x64
User avatar
majkinetor !
Power Member
Power Member
Posts: 1580
Joined: 2006-01-18, 07:56 UTC
Contact:

Post by *majkinetor ! »

2majkinetor !
Please remove or update all of my plugins which can be found on googlecode.
Sure. In next version. I will include links to all plugins I included in About\Links section. Currently links are on the forum.
It would be nice if the entry fields could grow when one resizes the window, they feel a bit cramped.
Ill see what I can do. It troubles me too.
Also the font for the buttons and window is not easy on the eyes. Could you please make it bigger - there is enough room ... (and some of the buttons who would then be cramped could be renamed f.e. "Result List" to "Results").
Edit MRS.ini Config section:

Code: Select all

FontFace=
FontStyle=s8
If you need more control you can edit MRS\inc\Gui.ahk: GuiCreate() function.
For instance, set s12 to get font of size 12, or "bold, s10" to make it larger and bold.
Cosmetic: "File name" should have a capital N for consistency.
Sure


2 all
Check here regular expression for Removing Dots (it can't be done as easily as search dot, replace space in general). There is also instruction how to add it directly in TC Start Menu so that you don't have to open MRS at all.
Habemus majkam!
brahman
Senior Member
Senior Member
Posts: 208
Joined: 2006-04-26, 13:27 UTC

Post by *brahman »

Thank you majkinetor, for your help. If you could increase legibility for the buttons and windows in your next release that would be great ... :)

The empty presets window looks so unappreciated, so I created some expressions and added your great replace dot regex too:

Code: Select all

[Presets]
name1=_F12 Resets - Del Deletes 
def1=[N]>[E]>>>0>1
name2=EBook w.4BeginningNumbers
def2= [N]>[E]>(\d{4}) - (.*) - (.*)(\.\w*$)>$1-$3=$2$4>1>1
name3=Any Name Switch
def3= [N]>[E]>(.*) (Any Name) (.*)(\.\w*$)>$3 $1 $2$4>1>1
name4=Music MP3 Tag Switch
def4= [N]>[E]>(.*) - (.*) - (.*) - (.*)(\.\w*$)>$2 - $3 - $4 - $1$5>1>1
name5=MSI Installer Content RegEx (trailing junk after name.ext)
def5= [N]>[E]>(.+\....)\..+>$1>1>1
name6=StartWord until Digit
def6= [N]>[E]>^Any Word \D*>>1>1
name7=Switch #s 1st Letters Last
def7= [N]>[E]>(\D*)-(\d*)-(\D*)\.>$2-$3 - $1.>1>1
name8=Space@End Cleanup
def8= [N]>[E]>\x20(\.\w*$)>$1>1>1
name9=Mark for Deletion
def9=DEL.[N]>[E]>>>0>1
name10=MinoltaF200 Generic
def10=MinoltaF200 [N5-35]  [YMD]>[E]>>>0>1
name11=MP3 Tag -Dash Volume Cleanup
def11=[N]>[E]>(.*) (- volume) (.*)\.mp3>$1 Volume $3.mp3>1>1
name12=Plustek Book Reset Nr Count
def12=[N1-11][C10+1:4]>[E]>>>0>1
name13=Clear up to .*?fonts.
def13=[N]>[E]>.*?fonts.>>1>1
name14=Generic Name Cleanup
def14=[N]>[E]>__-__|__-_|_-_|__| -|- |   |  |_>-|-|-|-|-|-| | | >0>1
name15=UPX Revert
def15=[N]>[E]>.dll|.exe|.dl~|.ex~>.dl-|.ex-|.dll|.exe>0>1
name16=Space@Start Cleanup
def16=[N]>[E]>^\x20(.*$)>$1>1>1
name17=Dot>Space except Ext+Dir
def17=[N]>[E]>i)([a-z])\.([a-z])(?![^.]{0,3}$)>$1 $2>1>1
The first one clears like F12 and reminds the user of the F12 and delete commands in this menu, some of the other commands teach some regex basics by example.

If you want you can include them in the ini file. It will make life for a basic user much easier IMHO.

For the Total Commander Renamer users here are similar presets which anybody is welcome to use (except majkinetor's script which cannot be reproduced as is in TC):

Code: Select all

[rename]
Minolta F200 Generic_name="MinoltaF200 [N5-35]  [YMD]"
Minolta F200 Generic_ext="[E]"
Minolta F200 Generic_search=""
Minolta F200 Generic_replace=""
Minolta F200 Generic_params=0|1|1|1
Plustek Book Reset Nr Count_name="[N1-11][C]"
Plustek Book Reset Nr Count_ext="[E]"
Plustek Book Reset Nr Count_search=""
Plustek Book Reset Nr Count_replace=""
Plustek Book Reset Nr Count_params=0|42|1|4
UPX Revert_name="[N]"
UPX Revert_ext="[E]"
UPX Revert_search=".dll|.exe|.dl~|.ex~"
UPX Revert_replace=".dl-|.ex-|.dll|.exe"
UPX Revert_params=0|1|1|1
MSI Installer Content RegEx (trailing junk after name.ext)_name="[N]"
MSI Installer Content RegEx (trailing junk after name.ext)_ext="[E]"
MSI Installer Content RegEx (trailing junk after name.ext)_search="(.+\....)\..+"
MSI Installer Content RegEx (trailing junk after name.ext)_replace="$1"
MSI Installer Content RegEx (trailing junk after name.ext)_params=0|1|1|1|1|0
MP3 Tag Switch_name="[N]"
MP3 Tag Switch_ext="[E]"
MP3 Tag Switch_search="(.*) - (.*) - (.*) - (.*)(\.\w*$)"
MP3 Tag Switch_replace="$2 - $3 - $4 - $1$5"
MP3 Tag Switch_params=0|1|1|1|1|0|0
MP3 Tag -Dash Volume Cleanup_name="[N]"
MP3 Tag -Dash Volume Cleanup_ext="[E]"
MP3 Tag -Dash Volume Cleanup_search="(.*) (- volume) (.*)(\.\w*$)"
MP3 Tag -Dash Volume Cleanup_replace="$1 Volume $3$4"
MP3 Tag -Dash Volume Cleanup_params=0|1|1|1|1|0|0
Any Name Switch_name="[N]"
Any Name Switch_ext="[E]"
Any Name Switch_search="(.*) (Any Name) (.*)\.(.*)"
Any Name Switch_replace="$3 $1 $2.$4"
Any Name Switch_params=0|1|1|1|1|0|0
Clear up to .*?fonts._name="[N]"
Clear up to .*?fonts._ext="[E]"
Clear up to .*?fonts._search=".*?fonts."
Clear up to .*?fonts._replace=""
Clear up to .*?fonts._params=0|1|1|1|1|0|0
Mark for Deletion_name="DEL.[N]"
Mark for Deletion_ext="[E]"
Mark for Deletion_search=""
Mark for Deletion_replace=""
Mark for Deletion_params=0|1|1|1
EBook w.4BeginningNumbers_name=[N]
EBook w.4BeginningNumbers_ext=[E]
EBook w.4BeginningNumbers_search=(\d{4}) - (.*) - (.*)(\.\w*$)
EBook w.4BeginningNumbers_replace=$1-$3=$2$4
EBook w.4BeginningNumbers_params=0|1|1|1|1|0|0
StartWord until Digit_name=[N]
StartWord until Digit_ext=[E]
StartWord until Digit_search=^Any Word \D*
StartWord until Digit_params=0|1|1|1|1|0|0
Generic Name Cleanup_name=[N]
Generic Name Cleanup_ext=[E]
Generic Name Cleanup_search=__-__|__-_|_-_|__| -|- |   |  |_
Generic Name Cleanup_replace="-|-|-|-|-|-| | | "
Generic Name Cleanup_params=0|1|1|1
Switch #s 1st Letters Last_name=[N]
Switch #s 1st Letters Last_ext=[E]
Switch #s 1st Letters Last_search=(\D*)-(\d*)-(\D*)\.
Switch #s 1st Letters Last_replace=$2-$3 - $1.
Switch #s 1st Letters Last_params=0|1|1|1|1|0|0
Space@End Cleanup_name=[N]
Space@End Cleanup_ext=[E]
Space@End Cleanup_search=\x20(\.\w*$)
Space@End Cleanup_replace=$1
Space@End Cleanup_params=0|1|1|1|1|0|0
Space@Start Cleanup_name=[N]
Space@Start Cleanup_ext=[E]
Space@Start Cleanup_search=^\x20(.*$)
Space@Start Cleanup_replace=$1
Space@Start Cleanup_params=0|1|1|1
Regards, Brahman
Win10 & 11 Pro x64
User avatar
majkinetor !
Power Member
Power Member
Posts: 1580
Joined: 2006-01-18, 07:56 UTC
Contact:

Post by *majkinetor ! »

Thx brahman.

I wanted to do that myself and you saved me some time. Ill most definitely include parts of it in next version.
Habemus majkam!
brahman
Senior Member
Senior Member
Posts: 208
Joined: 2006-04-26, 13:27 UTC

Post by *brahman »

Hi majkinetor,

here seems to be a bug:

If you want to add the file date to the file name, the month apparently shows the year by mistake.

Hope we will see a new version soon.
Regards, Brahman
Win10 & 11 Pro x64
User avatar
majkinetor !
Power Member
Power Member
Posts: 1580
Joined: 2006-01-18, 07:56 UTC
Contact:

Post by *majkinetor ! »

Thx for reporting this.


To fix it, open inc\Ifun.ahk

Line 100:

Code: Select all

;[M] Paste month, 2 digit   
M:
	FileGetTime, #tmp, %#fp%, M
	#Res := SubStr(#tmp,3,2)  <------- change this to SubStr(#tmp,5,2)
return
Cheers
Habemus majkam!
Post Reply