用于转储 Windows DLL 版本的命令行工具? [英] Command line tool to dump Windows DLL version?

查看:26
本文介绍了用于转储 Windows DLL 版本的命令行工具?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要一个命令行工具来转储标准的 Windows DLL 版本信息,以便我可以通过 bash 脚本 (Cygwin) 来处理它.

I need a command line tool to dump standard Windows DLL version info so I can process it by means of a bash script (Cygwin).

作为一名 Java 开发人员,我不太习惯 Microsoft 开发工具(尽管我对 Microsoft Visual Embedded C++ 4.0 和 Microsoft Visual Basic 6.0 有一些经验).

As a Java developer I am not very used to Microsoft development tools (though I have a little bit of experience with Microsoft Visual Embedded C++ 4.0 and Microsoft Visual Basic 6.0).

合适的工具似乎是 mt.exe,如在 SO 上说明.然而,我发现获得这个小应用程序的唯一机会是下载 适用于 Windows Server 2008 和 .NET Framework 的 Windows SDK.我不敢相信这是唯一的方法.

The appropriate tool seems to be mt.exe, as stated on SO. However the only chance I have found to get this little application is to download a 1.29 GB ISO of the Windows SDK for Windows Server 2008 and .NET Framework. I can not believe this is the only way to do it.

我也在网上找到了一个叫PEView的小应用,但是显示太多了(在我的情况下无用)信息,它不是命令行应用程序.

I have also found a little application on the Internet called PEView, but it displays too much (and useless in my case) information and it is not a command line application.

标准 objdump 捆绑在 Cygwin 中也可以转储有关 DLL 文件的一些信息,但我可以没有看到转储 DLL 版本的选项.请注意,此工具转储的 MajorImageVersion、MinorImageVersion 等字段(带 -p 选项)与自己的 DLL 版本无关.

Standard objdump bundled inside Cygwin can also dump some information about the DLL files, but I can not see the option to dump DLL version. Note that MajorImageVersion, MinorImageVersion and other fields dumped by this tool (with -p option) are not related to own DLL version.

关于做什么的任何替代方案?也许我错过了一些重要的 objdump 选项?mt.exe 是我唯一的选择吗?如果是这种情况,是否可以与 Windows SDK 分开获取?

Any alternatives about what to do? Maybe I missed some important objdump option? Is mt.exe my only choice? If this is the case, is it possible to get it separately from Windows SDK?

推荐答案

您还可以查看 filever.exe,它可以作为 Windows XP SP2 支持工具 包 - 仅 4.7MB 下载量.

You can also look at filever.exe, which can be downloaded as part of the Windows XP SP2 Support Tools package - only 4.7MB of download.

这篇关于用于转储 Windows DLL 版本的命令行工具?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆