CompareDirs problem.

English support forum

Moderators: white, Hacker, petermad, Stefan2

Post Reply
sexy69
Member
Member
Posts: 124
Joined: 2016-06-22, 17:21 UTC

CompareDirs problem.

Post by *sexy69 »

I have two identical files.
They differ only in time, 9 seconds

15-01-2017 18:32:16
15-01-2017 18:32:25

The VBS script, the following commands show
that these files are different.

cm_CompareDirs
cm_DirMatch
cm_CompareDirsWithSubdirs

How to disable checking the time
or enable checking the binary?
User avatar
Horst.Epp
Power Member
Power Member
Posts: 6507
Joined: 2003-02-06, 17:36 UTC
Location: Germany

Post by *Horst.Epp »

Why don't you use Synchronize Dirs anc set the options
"Ignore date" and "by content"
Windows 11 Home x64 Version 23H2 (OS Build 22631.3527)
TC 11.03 x64 / x86
Everything 1.5.0.1373a (x64), Everything Toolbar 1.3.3, Listary Pro 6.3.0.78
QAP 11.6.3.3 x64
sexy69
Member
Member
Posts: 124
Joined: 2016-06-22, 17:21 UTC

Post by *sexy69 »

That's what I do command "Synchronize Dirs"
to have these options: 'Ignore date "and" to content "?

I know it has to be: cm_FileSync
but I want to compare in the windows (the panels)
User avatar
Horst.Epp
Power Member
Power Member
Posts: 6507
Joined: 2003-02-06, 17:36 UTC
Location: Germany

Post by *Horst.Epp »

sexy69 wrote:That's what I do command "Synchronize Dirs"
to have these options: 'Ignore date "and" to content "?

I know it has to be: cm_FileSync
but I want to compare in the windows (the panels)
Synchronize Dirs compares in the panels and you don't need to hit "Synchronize" just "Compare"
Windows 11 Home x64 Version 23H2 (OS Build 22631.3527)
TC 11.03 x64 / x86
Everything 1.5.0.1373a (x64), Everything Toolbar 1.3.3, Listary Pro 6.3.0.78
QAP 11.6.3.3 x64
sexy69
Member
Member
Posts: 124
Joined: 2016-06-22, 17:21 UTC

Post by *sexy69 »

And when files are not disagree,
i have to look for them then to see it?

It has to be either of these commands
cm_CompareDirs
cm_DirMatch
cm_CompareDirsWithSubdirs

and these commands do not have to choose any option.
User avatar
Horst.Epp
Power Member
Power Member
Posts: 6507
Joined: 2003-02-06, 17:36 UTC
Location: Germany

Post by *Horst.Epp »

sexy69 wrote:And when files are not disagree,
i have to look for them then to see it?

It has to be either of these commands
cm_CompareDirs
cm_DirMatch
cm_CompareDirsWithSubdirs

and these commands do not have to choose any option.
In Sync Dirs you have the option to view the left or the right version of a pair
and also you can enter compare files to see the real diffs for a pair.
What else do you need ?
Windows 11 Home x64 Version 23H2 (OS Build 22631.3527)
TC 11.03 x64 / x86
Everything 1.5.0.1373a (x64), Everything Toolbar 1.3.3, Listary Pro 6.3.0.78
QAP 11.6.3.3 x64
sexy69
Member
Member
Posts: 124
Joined: 2016-06-22, 17:21 UTC

Post by *sexy69 »

you can enter compare files to see the real diffs for a pair.
And how to do it in "cm_FileSync"?
User avatar
tuska
Power Member
Power Member
Posts: 3765
Joined: 2007-05-21, 12:17 UTC

Re: CompareDirs problem.

Post by *tuska »

sexy69 wrote: ... How to disable checking the time ...
What about ...

Configuration -> Options -> Operation -> NTFS daylight saving correction ->
Ignore 1 hour time delay (ticked!)
OR

Code: Select all

[Configuration]
1hourdif=1
?
sexy69
Member
Member
Posts: 124
Joined: 2016-06-22, 17:21 UTC

Post by *sexy69 »

Code: Select all

[Configuration]
1hourdif=1
So I have all the time set
and these commands

cm_CompareDirs
cm_DirMatch
cm_CompareDirsWithSubdirs

They do not respect
User avatar
sqa_wizard
Power Member
Power Member
Posts: 3864
Joined: 2003-02-06, 11:41 UTC
Location: Germany

Post by *sqa_wizard »

1hourdif=1 : Ignore time difference of exactly one hour when comparing files.

You have to set 1hourdif=0 to respect a time difference.
#5767 Personal license
User avatar
tuska
Power Member
Power Member
Posts: 3765
Joined: 2007-05-21, 12:17 UTC

Post by *tuska »

sexy69 wrote:

Code: Select all

[Configuration]
1hourdif=1
So I have all the time set
and these commands

cm_CompareDirs
cm_DirMatch
cm_CompareDirsWithSubdirs

They do not respect
I am not aware of any command or configuration in TC that can do this for you:
Time setting for these three commands.

Regards
Karl
User avatar
tuska
Power Member
Power Member
Posts: 3765
Joined: 2007-05-21, 12:17 UTC

Post by *tuska »

sexy69 wrote:
you can enter compare files to see the real diffs for a pair.
And how to do it in "cm_FileSync"?
19.10.16 Release Total Commander 9.0 release candidate 2 (RC2) (32/64)
18.10.16 Added: Synchronize dirs: Compare by content: Compare single files from each side by selecting just the two files and choosing "Compare..." from the context menu (32/64)
... or double click on the row in "Synchronize directories"-window.

Regards
Karl
sexy69
Member
Member
Posts: 124
Joined: 2016-06-22, 17:21 UTC

Post by *sexy69 »

I have it a little differently solved.
So far, it is the best solution.

The problem is that 1hourdif = 1
the difference is only 1 hour.
and you can not turn it off, you do not check the time

or set: hourdif <1 and set: hourdif >1
Post Reply