Home > Uncategorized > How To Know If Two Files Are Identical ?

How To Know If Two Files Are Identical ?

January 15th, 2010 Angel Leave a comment Go to comments

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:

  1. How To Copy Files Except Some
  2. Deleting Files With Long Names
  3. Copying Only The Files That Have Changed To A Replica Directory
  4. Moving a File That Is Being Used
  5. How To Execute Programs On Remote Systems
Categories: Uncategorized Tags:
  1. No comments yet.
  1. No trackbacks yet.