Is there any MS-DOS command to get the version of the executable (or dll)?

Is there any MS-DOS command to get the version of the executable (or dll) am?

+3
source share
4 answers

Of course, there is a simple command :-)

wmic /node:"servername" datafile where name='c:\\Program Files (x86)\\Symantec\\Symantec Endpoint Protection\\smc.exe' get version

you can ommit / node check on the local machine. And if you push "get version", you get all the values ​​and column names. Of course, there are standard wmic options available as / output: filename, / append: filename or / format: csv, and you can use @ list.txt instead of the server name to perform a list of machines check.

+3
source

Either custom shell see Get file version in PowerShell

Windows

, , MSDOS .

+1

You can download the executable as a binary and read the PE headers manually ...

http://www.microsoft.com/whdc/system/platform/firmware/PECOFF.mspx

+1
source

You can try Resource Hacker with the following syntax:

reshack.exe -extract "path\to\my\file.dll," ver.rc, VERSIONINFO, , && findstr FILEVERSION ver.rc

Beware of commas. Make sure you can create one ver.rc.

+1
source

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


All Articles