automatic comparison of 2 files

Discussion & Support for xplorer² professional

Moderators: fgagnon, nikos, Site Mods

Post Reply
cdailey
New Member
Posts: 8
Joined: 2004 Jul 10, 02:58

automatic comparison of 2 files

Post by cdailey »

I have (yet another) convenience request. Please add a new status bar item that shows whether 2 selected files are identical or not. My apologies if there’s already a thread for this, as searching for “compare” returned too many threads.

Often attachments are emailed and re-emailed by my co-workers and I need to determine if an attachment is a duplicate or has been modified. I set up a user command to launch WinMerge after selecting 2 files to see if these are the same or, if not and these are text files, how these differ, but I would prefer to just select 2 files then look at the status bar to see if these are duplicates (without having to launch WinMerge or otherwise compare the files) then decide whether to further compare.

I’m thinking the new status bar box could show 1 of 4 graphical indications:
1) Blank/empty box when anything besides 2 files are selected
2) 2 file graphics (rectangular pieces of dog-eared paper with horizontal lines for the writing) with a question mark in between while the comparison is occurring
3) 2 file graphics with an equal sign in between if these are identical
4) 2 file graphics with a not equal sign in between if these aren’t identical

I would compare in 2 steps. When 2 files are selected, check the file sizes. If different, show the “not equal” graphic else show the “question mark” graphic and begin comparing byte by byte until a difference is found or the end of the files is reached and no differences were found.

The comparison should probably be a low priority task so that comparing 2 big files doesn't slow things down too much.

Thanks for your consideration!
User avatar
nikos
Site Admin
Site Admin
Posts: 15800
Joined: 2002 Feb 07, 15:57
Location: UK
Contact:

Post by nikos »

you can do this yourself, sort of. There is a checksum column which is indicative of the content of any file, so if two have the same checksum they are likely identical. You can put the checksum column either in detailed view mode or enable the infobars (view > toolbars menu) and add it there

as an additional convenience use <ctrl+M> to turn on mirror browsing/scrolling
cdailey
New Member
Posts: 8
Joined: 2004 Jul 10, 02:58

Post by cdailey »

OK - thanks. I'd forgotten about checksums. Looking at those is quicker than launching WinMerge.
User avatar
atomdrift
New Member
Posts: 4
Joined: 2010 Oct 14, 16:20

Post by atomdrift »

I hadn't used the Infobars before.  Very cool.
profess
Silver Member
Silver Member
Posts: 307
Joined: 2003 Oct 06, 11:39

checksums

Post by profess »

whilst we're on the subject...

Sometimes checksums are not available, there is no entry and/or the value is 00000000.

How comes?  Thanks.

Osei
Live life...
User avatar
nikos
Site Admin
Site Admin
Posts: 15800
Joined: 2002 Feb 07, 15:57
Location: UK
Contact:

Post by nikos »

there is a size limit for checksum extraction, see Tools > Options > General
profess
Silver Member
Silver Member
Posts: 307
Joined: 2003 Oct 06, 11:39

Post by profess »

Ok. Thanks for clearing that up.

Osei
Live life...
Post Reply