Charles Dye
Super Moderator
- May
- 5,392
- 166
Staff member
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.)
(I haven't seen anybody using Roman numerals yet, but it's probably only a matter of time....)
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....)