@VERINFO[filename[,info[,language]]]: Returns the version information for the specified file. The optional second parameter specifies the desired information and defaults to FileVersion. The optional third parameter specifies the language/codepage pair (in hex). If that parameter is omitted, the code page for the default user language is assumed. If the requested information field is not provided in the specified file, returns a null string.

 

For example, TCMD.EXE returns values for:

 

CompanyName

FileDescription

FileVersion

InternalName

LegalCopyright

LegalTrademarks

OriginalFilename

ProductName

ProductVersion

Build

 

To return CompanyName :

 

echo %@verinfo[tcmd.exe,companyname,040904E4]

 

Note: Most, but not all, executables under Windows contain a FileVersion field. The number, names and contents of the specific information fields and language/codepage pairs provided within a given application can potentially be anything the programmer decided to use.