|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Problem Compare Two Filei 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. 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/reference/oslocversion.mspx In your case is that the first thing that I would check. Cor 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) It is possible to change the code tables, I did it myself once for a test > I don't think is this > and forget to set it back by accident. Cor
Microsoft MVPs Say They Want Old VB Back
Anyone tried REALbasic? ArrayList Strongly Typed VB6 easier than VB.NET? Datagrid colum sorting problem - URGENT Problem with VS.NET 2003 How to implement ComboBox.FindValue HELP! Cannot start NEW project list item colour Windows Form DataGrid - Need A Color Border Around Only The Selected Row - Will GDI Be Required |
|||||||||||||||||||||||