如何比较两个exe文件从一个旧的$ C $现在c和一个建在几个月前现有的exe建?个旧、几个、建在、月前

2023-09-05 02:41:39 作者:不再见的情人

我要寻找比较两个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.

 
精彩推荐
图片推荐