How to find differences from folders supposed to be same

Started by markkums, August 22, 2018, 12:24:40 PM

Previous topic - Next topic

markkums

Hi there,

Does any of you have some proposals for doing comparision in iMatch between two folders containing mainly image files. I ask this because I supposed two folders to be idfentical, but by occasion I checked their size, and there is a huge difference in size ( e.g. 176 Gb v.s. 135 Gb). However, I cannot see any difference in (image) content. I also did comparison with WinMerge, but the result gave no explanation for the size difference. If any other reason for difference cannot be identified, may explanation is in the actual packing of data into the blocks. However both drives (both the mobile and that used by iMatch) use NTSF data system.

I would like to delete the larger folder (it was originally on my mobile disk which I used during my travel. At home I transferred files into iMatch and sometimes after transfer I realized the size difference) but I´m worried if something important will be missed.

Thanks in advange,
rgds Markku


Mario

The easiest way (without using specialized software) I know are 3 lines of Powershell code:

$fsoa = Get-ChildItem -Recurse -path "C:\data\images"
$fsob = Get-ChildItem -Recurse -path "C:\data\images2"
Compare-Object -ReferenceObject $fsoa -DifferenceObject $fsob


This compares the contents of "c:\data\images" with "c:\data\images" and outputs files which only exist in one folder or which differ otherwise.

Copy the lines above into Notepad, put in the correct folders and then save with the extenson .ps1.
You can then run it directly from the Windows Powershell command line.

See https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.utility/compare-object?view=powershell-6
-- Mario
IMatch Developer
Forum Administrator
http://www.photools.com  -  Contact & Support - Follow me on 𝕏 - Like photools.com on Facebook