Get version of dll or exe file

Possible duplicates:
Command line tool to reset Windows dll version? How to get file version from batch file in Windows Vista?

Is it possible to get the version of a dll or exe file using command commands and save it in a variable?

+6
source share
2 answers

Here is an example using sigcheck:

@ECHO OFF FOR /F "tokens=1-3" %%i IN ('p:\supporttools\sigcheck.exe p:\supporttools\procmon.exe') DO ( IF "%%i %%j"=="File version:" SET filever=%%k ) ECHO The version of the file is %filever% PAUSE 
+11
source

Take a look at the Sysinternals SigCheck utility. Try this in your batch script:

 sigcheck.exe -n YourFile.exe 
+10
source

Source: https://habr.com/ru/post/892782/


All Articles