@VERINFO suggestion

Charles Dye

Super Moderator
Staff member
May 20, 2008
3,797
48
Albuquerque, NM
prospero.unm.edu
If the language parameter to @VERINFO is -1, return the binary version number from the VS_FIXEDFILEINFO structure. Return it as four decimal numbers, separated by periods (not the current decimal char.)

Code:
C:\>echo %@verinfo[c:\Bin\TCmd24\tcc.exe]
24.0.32

C:\>echo %@verinfo[c:\Bin\TCmd24\tcc.exe,,-1]
24.0.32.0

C:\>echo %@verinfo[%@search[notepad.exe]]
6.1.7600.16385 (win7_rtm.090713-1255)

C:\>echo %@verinfo[%@search[notepad.exe],,-1]
6.1.7601.18917

C:\>echo %@verinfo[C:\Windows\RtlExUpd.dll]
1, 0, 2, 4

C:\>echo %@verinfo[C:\Windows\RtlExUpd.dll,,-1]
1.0.2.4

C:\>
(I haven't seen anybody using Roman numerals yet, but it's probably only a matter of time....)