How To Know If Two Files Are Identical ?
Description
There are several ways to know if two files have the same content.
Solution
We are going to see 2 ways of doing this. First one using Windows XP:
This solution assumes that the two files are in c:\utils and their names are file1 and file2.
1. Press Windows Key + E, type cmd and press enter.
2. Type:
cd /D c:\utils
and press enter.
3. We are going to use the command FC. Type:
FC file1 file2 /B
The second way is to use a tool to generate a hash number. This technique is in use in many webs to be sure that the files you have downloaded is the same that is in the server.
1. Download the md5 application:
http://www.fourmilab.ch/md5/md5.zip
2. Unzip it in c:\utils
3. Press Windows Key + R, type cmd and press enter.
4. Type cd /D c:\utils and press enter.
Now you can use it to generate the hash code of any file you want, for example:
md5 file1
if you have two identical hashes is almost sure the two files files are identical too.
Related posts: