Compare dirs ignoring files timestamps?

English support forum

Moderators: Hacker, petermad, Stefan2, white

Post Reply
KozakMak
Senior Member
Senior Member
Posts: 489
Joined: 2021-05-24, 12:39 UTC
Location: UA

Compare dirs ignoring files timestamps?

Post by *KozakMak »

How can i compare dirs ignoring files timestamps?

...and ideally i want see something like this window after i hit Shift+F2

https://fpic.in/jV2xrFk
OS: Win10 | TC: latest x64
User avatar
Horst.Epp
Power Member
Power Member
Posts: 6976
Joined: 2003-02-06, 17:36 UTC
Location: Germany

Re: Compare dirs ignoring files timestamps?

Post by *Horst.Epp »

Im Synchronze Directories gibt es unter anderem "Ignore date"
Windows 11 Home, Version 24H2 (OS Build 26100.4061)
TC 11.55 RC2 x64 / x86
Everything 1.5.0.1391a (x64), Everything Toolbar 1.5.2.0, Listary Pro 6.3.2.88
QAP 11.6.4.4 x64
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50550
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: Compare dirs ignoring files timestamps?

Post by *ghisler(Author) »

English: There is an option "Ignore date" in menu Commands - Synchronize dirs.
Author of Total Commander
https://www.ghisler.com
KozakMak
Senior Member
Senior Member
Posts: 489
Joined: 2021-05-24, 12:39 UTC
Location: UA

Re: Compare dirs ignoring files timestamps?

Post by *KozakMak »

with Shift+F2 no chance??
OS: Win10 | TC: latest x64
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50550
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: Compare dirs ignoring files timestamps?

Post by *ghisler(Author) »

No, Shift+F2 is meant to select NEWER files very quickly.
Author of Total Commander
https://www.ghisler.com
User avatar
Usher
Power Member
Power Member
Posts: 1726
Joined: 2011-03-11, 10:11 UTC

Re: Compare dirs ignoring files timestamps?

Post by *Usher »

2ghisler(Author)
What about using Alt+Shift+F2 to select OLDER files very quickly and additional setting in wimcmd.ini to ignore the same timestamp? For example:

IgnoreSame=1
Shift+F2: select only newer files
Alt+Shift+F2: select only older files

ignoreSame=0
Shift+F2: select newer or the same files
Alt+Shift+F2: select older or the same files
Andrzej P. Wozniak
Polish subforum moderator
User avatar
solid
Power Member
Power Member
Posts: 749
Joined: 2004-08-09, 11:20 UTC

Re: Compare dirs ignoring files timestamps?

Post by *solid »

You can use Inverse selection (Numpad *) after Shift+F2.
User avatar
Usher
Power Member
Power Member
Posts: 1726
Joined: 2011-03-11, 10:11 UTC

Re: Compare dirs ignoring files timestamps?

Post by *Usher »

2solid
Let me explain it.

Shift+F2 marks the following files:
A) not existing,
B) newer (with the same size and newer timestamp),
C) different (with different size and the same timestamp).
The following files stay unmarked:
D) the same files (with the same timestamp and size);
E) older files (with older timestamp).
Inverse selection marks parts D and E, but I want to select only older files, listed as part E.
Andrzej P. Wozniak
Polish subforum moderator
User avatar
solid
Power Member
Power Member
Posts: 749
Joined: 2004-08-09, 11:20 UTC

Re: Compare dirs ignoring files timestamps?

Post by *solid »

2Usher
Yes, i see your point. Identical files are issue in this case.
Instead of tricky ini settings, maybe better solution is a cm_ for (de)selecting identical files.
User avatar
petermad
Power Member
Power Member
Posts: 16032
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: Compare dirs ignoring files timestamps?

Post by *petermad »

2KozakMak
Does this do what you want?

Put this command in your usercmd.ini file (it is located the same place as your wincmd.ini file:

Code: Select all

[em_show_duplicates]
cmd=cm_SelectAllBoth,cm_CopyNamesToClip,cm_FocusTrg,cm_GoToFirstEntry,cm_ClearAll,cm_LoadSelectionFromClip,cm_CopyNamesToClip,cm_ShowOnlySelected,cm_ClearAll,cm_FocusTrg,cm_ClearAll,cm_LoadSelectionFromClip,cm_ShowOnlySelected,cm_ClearAll
menu=Show only files and folders that exist in both panels
button=wcmicons.dll,73
Make this button:

Code: Select all

TOTALCMD#BAR#DATA
em_show_duplicates,cm_DirMatch,cm_ExchangeSelFiles,cm_CopyFullNamesToClip,cm_SrcAllFiles,cm_LoadSelectionFromClip,cm_FocusTrg,cm_ExchangeSelFiles,cm_CopyFullNamesToClip,cm_SrcAllFiles,cm_LoadSelectionFromClip,cm_FocusTrg

wcmicons.dll,39
Mark files that exist in both panels and are older than the opposite file


-1
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".
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