Page 1 of 1

[Script] CompareFiles (by checksum)

Posted: 03 Aug 2013 17:27
by highend
Hi,

this script compares selected (or if a pane doesn't contain a selection: all files in that pane) files by checksum and selects (and optionally outputs a separate list):

- identical
- non identical
- missing

files in both panes.

At the end you're asked to choose the pane where the (selected) files will be deleted.

The option to show only missing items could be achieved via
"Menu - Panes - Sync Select..." as well and was added only because of convenience^^

Be careful, comparing files by checksum can be a very time consuming process especially if the files are large (hundreds of MB or GBs). XY will become unresponsive while working on those files!

If you find any flaws, post em^^

Re: [Script] CompareFiles (by checksum)

Posted: 04 Aug 2013 19:24
by CookieMonster
I compared the script to WinMerge, WinMerge was as slow as this script only when comparing, as mentioned, large files, or large files over a shared drive / network, in those cases manually comparing is the fastest option, no other way. Otherwise a very helpful script :)

Re: [Script] CompareFiles (by checksum)

Posted: 06 Aug 2013 10:49
by Enternal
Awesome! This is quite useful since it allows a more accurate comparison between what's missing and what's unique. Thanks!

Re: [Script] CompareFiles (by checksum)

Posted: 09 Aug 2013 06:19
by CookieMonster
There is a folder sync feature built into XY, it is fast, if you should have problems with the script. In the XY Help search for "Back up to other pane".

Re: [Script] CompareFiles (by checksum)

Posted: 09 Sep 2013 23:50
by gregjohnsondsm
The backup function is not really a folder sync. At least not the one that has been discussed as being on the roadmap. A folder sync function will update BOTH folders with the latest files from each. You can do the same with Backup, but you have to do it twice. Once from folder 1 to 2, and then again from 2 to 1. Anyone have any idea if the Folder Sync feature is still on the roadmap?

Re: [Script] CompareFiles (by checksum)

Posted: 10 Sep 2013 02:49
by j_c_hallgren
gregjohnsondsm wrote:Anyone have any idea if the Folder Sync feature is still on the roadmap?
It's the last item there -- see the Roadmap thread at http://www.xyplorer.com/xyfc/viewtopic.php?f=10&t=830