cm_CompareDirs, cm_CompareDirsWithSubdirs: parameter 2
Moderators: Hacker, petermad, Stefan2, white
cm_CompareDirs, cm_CompareDirsWithSubdirs: parameter 2
cm_CompareDirs, cm_CompareDirsWithSubdirs: parameter 2 = ignore timestamp
OS: Win10 | TC: latest x64
Re: cm_CompareDirs, cm_CompareDirsWithSubdirs: parameter 2
support++
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
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
- ghisler(Author)
- Site Admin
- Posts: 50386
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
Re: cm_CompareDirs, cm_CompareDirsWithSubdirs: parameter 2
What would be the difference to cm_CompareDirs 1 ?
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
Re: cm_CompareDirs, cm_CompareDirsWithSubdirs: parameter 2
Probably nothing - the description:
Maybe KozakMak wants such two files to be both marked instead with parameter 2.
If I have two files with the same name and size but different timestamps, then cm_CompareDirs 1 will not mark any of themHelp wrote:1: Only selects files which do not exist on the other side
Maybe KozakMak wants such two files to be both marked instead with parameter 2.
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
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
Re: cm_CompareDirs, cm_CompareDirsWithSubdirs: parameter 2
1 - ignored size !
I suggest param 2 - its like default behavior, but ONLY ignore timestamp
OS: Win10 | TC: latest x64
Re: cm_CompareDirs, cm_CompareDirsWithSubdirs: parameter 2
Currently I see this behaviour:
cm_CompareDirs:
Files with same size but different timestamp -> the newest file is marked
Files with different size but same timestamp -> both files are marked
Files with same size and date -> none of the files are marked
File only exists on one side -> the file is marked
cm_CompareDirs 1:
Files with same size but different timestamp -> none of the files are marked
Files with different size but same timestamp -> none of the files are marked
Files with same size and date -> none of the files are marked
File only exists on one side -> the file is marked
2KozakMak what is it that you want cm_CompareDirs 2 to do??
Is it this - cm_CompareDirs 2:
Files with same size but different timestamp -> none of the files are marked
Files with different size but same timestamp -> both files are marked
Files with same size and date -> none of the files are marked
File only exists on one side -> the file is marked
cm_CompareDirs:
Files with same size but different timestamp -> the newest file is marked
Files with different size but same timestamp -> both files are marked
Files with same size and date -> none of the files are marked
File only exists on one side -> the file is marked
cm_CompareDirs 1:
Files with same size but different timestamp -> none of the files are marked
Files with different size but same timestamp -> none of the files are marked
Files with same size and date -> none of the files are marked
File only exists on one side -> the file is marked
2KozakMak what is it that you want cm_CompareDirs 2 to do??
Is it this - cm_CompareDirs 2:
Files with same size but different timestamp -> none of the files are marked
Files with different size but same timestamp -> both files are marked
Files with same size and date -> none of the files are marked
File only exists on one side -> the file is marked
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
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
Re: cm_CompareDirs, cm_CompareDirsWithSubdirs: parameter 2
Files with different size but I DON'T CARE ABOUT TIMESTAMP -> both files are markedpetermad wrote: 2024-10-15, 11:17 UTC Files with different size but same timestamp -> both files are marked

You are absolutely right! That's cm_CompareDirs 2 i want

OS: Win10 | TC: latest x64
- ghisler(Author)
- Site Admin
- Posts: 50386
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
Re: cm_CompareDirs, cm_CompareDirsWithSubdirs: parameter 2
Thanks for the explanation, I will add this.
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
Re: cm_CompareDirs, cm_CompareDirsWithSubdirs: parameter 2
...and what about Timestamps ?16.10.24 Added: cm_CompareDirs, cm_CompareDirsWithSubdirs: New parameter 2 to select files with different sizes plus files which do not exist on the other side (32/64)
PS. in TOTALCMD.CHM param 2 not specified
OS: Win10 | TC: latest x64
Re: cm_CompareDirs, cm_CompareDirsWithSubdirs: parameter 2
I can confirm that cm_CompareDirs 2 works as descibed here:
I can also confirm that parameter 2 is not documented in the Help
petermad wrote:Files with same size but different timestamp -> none of the files are marked
Files with different size but same timestamp -> both files are marked
Files with same size and date -> none of the files are marked
File only exists on one side -> the file is marked
I can also confirm that parameter 2 is not documented in the Help
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
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
Re: cm_CompareDirs, cm_CompareDirsWithSubdirs: parameter 2
I confirm too!
but changelog doesn't mention it
OS: Win10 | TC: latest x64
- ghisler(Author)
- Site Admin
- Posts: 50386
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
Re: cm_CompareDirs, cm_CompareDirsWithSubdirs: parameter 2
2KozakMak
You quoted yourself where the changelog (history.txt) mentions it. Or do you mean the what's new section? I wonder whether I should mention such a small change there. It's just 2(!) lines of code...
You quoted yourself where the changelog (history.txt) mentions it. Or do you mean the what's new section? I wonder whether I should mention such a small change there. It's just 2(!) lines of code...
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
Re: cm_CompareDirs, cm_CompareDirsWithSubdirs: parameter 2
What to do if:petermad wrote:I can confirm that cm_CompareDirs 2 works as descibed here:
Files with different size and different timestamp?
The same as when cm_CompareDirs without a parameter?
Re: cm_CompareDirs, cm_CompareDirsWithSubdirs: parameter 2
Currently for files like that, the one with the newest filestamp is marked.What to do if:
Files with different size and different timestamp?
But I think it would be better if they were both marked just as Files with different size but same timestamp are
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
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