[Script] CompareFiles (by checksum)

Discuss and share scripts and script files...
Post Reply
highend
Posts: 14566
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

[Script] CompareFiles (by checksum)

Post 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^^
Attachments
CompareFiles.xys
(5.84 KiB) Downloaded 254 times
One of my scripts helped you out? Please donate via Paypal

CookieMonster

Re: [Script] CompareFiles (by checksum)

Post 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 :)

Enternal
Posts: 1174
Joined: 10 Jan 2012 18:26

Re: [Script] CompareFiles (by checksum)

Post by Enternal »

Awesome! This is quite useful since it allows a more accurate comparison between what's missing and what's unique. Thanks!

CookieMonster

Re: [Script] CompareFiles (by checksum)

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

gregjohnsondsm
Posts: 7
Joined: 09 Sep 2013 23:44

Re: [Script] CompareFiles (by checksum)

Post 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?

j_c_hallgren
XY Blog Master
Posts: 5826
Joined: 02 Jan 2006 19:34
Location: So. Chatham MA/Clearwater FL
Contact:

Re: [Script] CompareFiles (by checksum)

Post 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
Still spending WAY TOO much time here! But it's such a pleasure helping XY be a treasure!
(XP on laptop with touchpad and thus NO mouse!) Using latest beta vers when possible.

Post Reply