By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,020 Members | 1,141 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,020 IT Pros & Developers. It's quick & easy.

Problem Compare Two File

P: n/a
i must compare 2 files who are on two different pc
i try to calculare "HASH" but is different beetween PC1 AND PC2....

I TEST THIS CODE :

Dim _Sha1 As SHA1 = SHA1.Create
Dim Fs As FileStream
Fs = New FileStream(filename, FileMode.Open)
Return BytesToHex(_Sha1.ComputeHash(Fs))

OR

WITH MD5CryptoServiceProvider

But not it works....

why?
Nov 21 '05 #1
Share this Question
Share on Google+
5 Replies


P: n/a
Giuseppe,

What is the meaning of this sentence
i must compare 2 files who are on two different pc


I don't find a relation to it in your code.

Cor
Nov 21 '05 #2

P: n/a
I have a local file and a remote file;
I must verify throught remoting if the two files are identical,
So I need to calcolate an hash code.
The hash code calculated in the local machine is different from the hash
code calculated by remote machine, also if the two files are identical.

Nov 21 '05 #3

P: n/a
Giuseppe,

The only thing that can come in my mind is that by the writing of the files
different code tables are used.

Although for most Latin and German derived languages the Window code page is
the same.

http://www.microsoft.com/globaldev/r...ocversion.mspx

In your case is that the first thing that I would check.

Cor
Nov 21 '05 #4

P: n/a
The system operation are the same...(Windows XP, Italian Language)
I don't think is this

Thank You for the response...

Nov 21 '05 #5

P: n/a
Giuseppe,
The system operation are the same...(Windows XP, Italian Language)
I don't think is this

It is possible to change the code tables, I did it myself once for a test
and forget to set it back by accident.

Cor
Nov 21 '05 #6

This discussion thread is closed

Replies have been disabled for this discussion.