Method to automate TC?

English support forum

Moderators: white, Hacker, petermad, Stefan2

Post Reply
User avatar
JimmyTheBroker
Member
Member
Posts: 179
Joined: 2017-06-07, 05:22 UTC

Method to automate TC?

Post by *JimmyTheBroker »

Hi guys,

I'm wondering:
is there a method to run Total commander's "multi-rename tool", "Find File", etc using BATCH or some other language, to automate renaming of files.

Currently I can rename photos and videos using a Counter, the parent directory, the grand parent directory, the EXIF Year, Month, Day, Hour, Minute(for file types without EXIF data I can use creation date Year, Month, Day Hour, Minute)
However it is a laborious process even when using Total commander.
(I am using the Exif.wdx plugin for EXIF data).


The process I am hoping to automate is as follows (which does work, I just used it, but it is pretty messy to look at.):
Method 1
Requires plugin: "Exif.wdx" or "Exif.wdx64"
*** Requires the Exif.wdx or Exif.wdx64 Plugin installed ***
*** Step5 to Step9 Fixes the non-".JPG" filenames ***
1. Select all photos (Alt+F7) >Open Multi-Rename Tool (Ctrl+M)
2. Rename Mask: Formula1 > Start! > F5 (reload same photos)
3. UpArrow "Old Name"(Always click) > counter[C] Digits: 7 >
4. Rename Mask: Formula2 > Start! > Close Multi-Rename
5. New Search (Alt+F7) (Include same locations as in Step1)
6. Search for: " h m" > Run Search
7. Open Multi-Rename Tool (Ctrl + M)
8. Rename Mask: Formula3
& Search & Replace>Search for:"h m"> Start! >
Close Multi-Rename

Formula1 [=exif.DateOriginal.YMD] [=exif.TimeOriginal.h]h [=exif.TimeOriginal.m]m [=exif.TimeOriginal.s]s [C]
Formula2 [C]-[G]-[P]-[=exif.DateOriginal.YMD] [=exif.TimeOriginal.h]h [=exif.TimeOriginal.m]m
Formula3 [N]-[=tc.creationdate.YMD] [=tc.creationtime.h]h [=tc.creationtime.m]m
I finally get notifications from emails again!!!
So happy!
User avatar
Stefan2
Power Member
Power Member
Posts: 4153
Joined: 2007-09-13, 22:20 UTC
Location: Europa

Post by *Stefan2 »

Hmm,

You can create a own Buttonbar, which you can open "As menu" (drop-down-menu)

On that Buttonbar create buttons for:

10. >LOADSEARCH saved_search_name< ... opens search function with saved search.
12. >MULTIRENAME saved_rename_settings< ... opens the multi-rename tool with the specified settings
14. >SELECTFILES file types< ... marks files of the given type, e.g. SELECTFILES *.txt *.doc
See help > Operation > Menus > Menu configuration > Change Button Bar > Dialog box: Configuration - Change button bar



 
User avatar
Vochomurka
Power Member
Power Member
Posts: 814
Joined: 2005-09-14, 22:19 UTC
Location: Russia
Contact:

Post by *Vochomurka »

Almost everything can be automated by sending messages, simulating keyboard presses and mouse clicks. Many (if not all) programming/scripting languages can be used
Single user license #329241
PowerPro scripts for Total Commander
User avatar
JimmyTheBroker
Member
Member
Posts: 179
Joined: 2017-06-07, 05:22 UTC

Post by *JimmyTheBroker »

Vochomurka wrote:Almost everything can be automated by sending messages, simulating keyboard presses and mouse clicks. Many (if not all) programming/scripting languages can be used
Could you provide some examples or something?
I know a bit of VBA, A small about of BATCH and am trying to get Python to run (playing around with environmental variables extra)
I finally get notifications from emails again!!!
So happy!
User avatar
Arthanzar
New Member
New Member
Posts: 1
Joined: 2023-06-08, 04:41 UTC
Location: Auckland
Contact:

Re: Method to automate TC?

Post by *Arthanzar »

Seconded.
User avatar
Stefan2
Power Member
Power Member
Posts: 4153
Joined: 2007-09-13, 22:20 UTC
Location: Europa

Re: Method to automate TC?

Post by *Stefan2 »

Hi and welcome 2Arthanzar
Arthanzar wrote: 2023-06-08, 04:44 UTCSeconded.


What do you mean by that comment?







 
[MTAG]
User avatar
Horst.Epp
Power Member
Power Member
Posts: 6480
Joined: 2003-02-06, 17:36 UTC
Location: Germany

Re: Method to automate TC?

Post by *Horst.Epp »

2Stefan2
I guess Arthanzar is a spammer.
We will watch him.
Windows 11 Home x64 Version 23H2 (OS Build 22631.3447)
TC 11.03 x64 / x86
Everything 1.5.0.1371a (x64), Everything Toolbar 1.3.3, Listary Pro 6.3.0.73
QAP 11.6.3.2 x64
Post Reply