-3
我怎样才能在SYSTEM32比较2个SYS具有相同的文件在Dllcache文件和SYSTEM32名为/驱动程序文件夹,以sys文件/驱动程序是否损坏?用c#(md5 checksum或crc32或...)
我怎样才能在SYSTEM32比较2个SYS具有相同的文件在Dllcache文件和SYSTEM32名为/驱动程序文件夹,以sys文件/驱动程序是否损坏?用c#(md5 checksum或crc32或...)
你可以比较他们的SHA1 hashes:
public string ComputeHash(string filename)
{
using(var sha1 = new SHA1CryptoServiceProvider())
{
byte[] fileData = File.ReadAllBytes(filename);
string hash = BitConverter.ToString(sha1.ComputeHash(fileData));
}
}
@ ken2k - 他们[上一个问题](http://stackoverflow.com/questions/9343055/dllcache-folder-and-access-issue)今天发布包含他的尝试。 – 2012-02-18 19:03:14
http://meta.stackexchange.com/questions/60342/how-to-answer-do-my-work-for-me-questions – 2012-02-18 19:05:30