Problem Compare Two File

  • Thread starter Thread starter Giuseppe
  • Start date Start date
G

Giuseppe

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?
 
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
 
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.
 
The system operation are the same...(Windows XP, Italian Language)
I don't think is this

Thank You for the response...
 
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top