如何比较两个exe文件从一个旧的$ C $现在c和一个建在几个月前现有的exe建? [英] How to Compare two exe files One built from the old code now and the existing exe that was built a few months ago?
问题描述
我要寻找比较两个exe文件。我要确保服务器上现有的exe文件是在code我现在有一个产品。
I am looking to compare two exe files. I should ensure that the existing exe on the server is a product of the code I have now.
我使用
>dumpbin /rawdata oldfile.exe > oldfile.txt
>dumpbin /rawdata newfile.exe > newfile.txt
>fc /b oldfile.txt newfile.txt //compare them like this
>windiff oldfile.txt newfile.txt // or this
我想他们应该只由时间戳不同。这些都是从Visual Studio 2003 VB.net前男友。
I guess they should only differ by the timestamp. These are VB.net exes from visual studio 2003.
有什么想法?
感谢。
推荐答案
如果你正在寻找做的是验证二进制文件是相同的,那么你可以使用类似的md5sum或sha1sum分别将有效散列二进制的实用程序。如果散列对于每个二进制是相同的,那么很有可能的文件是相同的。
If all you're looking to do is verify the binaries are identical, then you could use a utility like md5sum or sha1sum which will effectively hashes the binary. If the hashes for each binary are the same, then the chances are the files are identical.
这篇关于如何比较两个exe文件从一个旧的$ C $现在c和一个建在几个月前现有的exe建?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!