Compare filename in two panels (left and right) and highlight the same files with same filename.

English support forum

Moderators: Hacker, petermad, Stefan2, white

Post Reply
mouzzampk
Junior Member
Junior Member
Posts: 15
Joined: 2021-03-18, 14:20 UTC

Compare filename in two panels (left and right) and highlight the same files with same filename.

Post by *mouzzampk »

Hi, I have searched thoroughly but couldn't find any easy answer.

Is it possible to highlight the files if the filename is same in both panels?

Thank you
User avatar
petermad
Power Member
Power Member
Posts: 16032
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: Compare filename in two panels (left and right) and highlight the same files with same filename.

Post by *petermad »

This button should do it:

Code: Select all

TOTALCMD#BAR#DATA
cm_SelectAllBoth,cm_CopyNamesToClip,cm_FocusTrg,cm_GoToFirstEntry,cm_ClearAll,cm_LoadSelectionFromClip,cm_CopyNamesToClip,cm_FocusTrg,cm_ClearAll,cm_LoadSelectionFromClip

wcmicons.dll,72
Mark files and folders that exist in both windows
To make the button:
1. Mark the text in the box here above (click SELECT ALL).
2. Copy it to the ClipBoard (press Ctrl+C).
3. Right click on TC's buttonbar and choose "Paste".


If you only want it to work with files and not folders you can use this button:

Code: Select all

TOTALCMD#BAR#DATA
cm_SelectAllFiles,cm_CopyNamesToClip,cm_FocusTrg,cm_GoToFirstEntry,cm_ClearAll,cm_LoadSelectionFromClip,cm_CopyNamesToClip,cm_FocusTrg,cm_ClearAll,cm_LoadSelectionFromClip

wcmicons.dll,70
Mark files that exist in both windows
License #524 (1994)
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
HerbieH
Member
Member
Posts: 154
Joined: 2003-02-11, 10:04 UTC

Re: Compare filename in two panels (left and right) and highlight the same files with same filename.

Post by *HerbieH »

To petermad

As it is now, the previous markings on the folders from command: 'Mark files and folders that exist in both windows'
are NOT removed, when you subsequently use 'Mark files that exist in both windows'

Therefore I have a suggestion for your button: 'Mark files that exist in both windows':
If you put these commands in front of the other commands:

Code: Select all

cm_ClearAll,cm_FocusTrg,cm_ClearAll,cm_FocusTrg
then older markings will always be deleted first.

PS. It could also be used as a header in 'Mark files and folders that exist in both windows' -and many other places. :)
HerbieH*
-Keep on makin' music!
User avatar
petermad
Power Member
Power Member
Posts: 16032
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: Compare filename in two panels (left and right) and highlight the same files with same filename.

Post by *petermad »

2HerbieH
It is only for the "Mark files that exist in both windows" button that it is necessary to clear the list first - so I only need to put cm_ClearAll in the front - the target was already cleared.

Code: Select all

TOTALCMD#BAR#DATA
cm_ClearAll,cm_SelectAllFiles,cm_CopyNamesToClip,cm_FocusTrg,cm_GoToFirstEntry,cm_ClearAll,cm_LoadSelectionFromClip,cm_CopyNamesToClip,cm_FocusTrg,cm_ClearAll,cm_LoadSelectionFromClip

wcmicons.dll,70
Mark files that exist in both windows
License #524 (1994)
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Post Reply