Assembly version from command line?

后端 未结 9 1486
慢半拍i
慢半拍i 2020-12-12 21:35

Is there a Microsoft tool to get the assembly version of a DLL file from a command line?

(I know that I can code my own tool.)

9条回答
  •  醉梦人生
    2020-12-12 22:10

    Wow this is bad considering things like old exploitable gdiplus.dll's floating around.

    My solution is simple. batch file programming.

    This puts an nfo file in the same dir with the version

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

    adobe_air_version.bat

    c:\z\filever.exe /A /D /B "C:\Program Files\Common Files\Adobe AIR\Versions\1.0\Adobe AIR.dll" >000_adobe_air.dll_VERSION.nfo
    
    exit
    

    Variation.

    Get all the versions in a directory to a text file.

    c:\z\filever.exe /A /D /B "c:\somedirectory\ *.dll *.exe >000_file_versions.nfo
    
    exit
    

    There's also Sigcheck by systernals.

    http://technet.microsoft.com/en-us/sysinternals/bb897441.aspx

提交回复
热议问题