@FILEVER — Returns the version number of a file.

Syntax:
%@FILEVER[file,flags]

filethe first file to examine
flags1: do not assume 0.0.0.0

File must exist. Directory aliases are supported. The version number will be returned in the format major.minor.build.private. If the file does not contain version information, the return value will be 0.0.0.0 — unless flags is 1, in which case the function will give an error instead.

This value is always four integers, separated by periods (not your local decimal character) and without leading zeroes or spaces. It’s a more consistent format than the version strings returned by @VERINFO, which may contain whatever the programmer fancies.

echo %@filever[%_cmdspec]