Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!

@VERINFO suggestion

Charles Dye

Super Moderator
May
4,948
126
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.)

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....)
 

Similar threads

Back
Top