Jump to content

How many files are the same


The Little Guy

Recommended Posts

lets say I own a file, and you own a file,  both these files are the exact same file, the only difference is the filename. So lets say we both have The Gimp 2.6 but one is named TG2.6.exe and the other is named the_Gimp-2.6.exe. What would be the best way to count the files that are the same even if they have a different file name? Another example would be:

 

I have a file called me.jpg and someone else has a file me.jpg but they are two completely different pictures. What would I do to tell that?

Link to comment
Share on other sites

filesize

 

md5_file

 

Files that are the same size, might be the same. Files that are not the same size cannot be the same.

 

Files that have the same md5 hash/checksum, are likely to be the same. Files that don't have the same md5 hash cannot be the same.

 

If files are the same size and have the same md5 hash, you would need to compare byte-byte to determine if they are the same or not.

 

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.