Adding to the other posts:
The FileSystemObject GetFileVersion method
is the easiest, if you just want the file version.
The WMI method provides more, but not all
version info.
The Shell.Application method varies greatly
depending on OS. It's also an undependable tool
that does not actually see all files.
A 4th method is here:
www.jsware.net/jsware/scripts.php5#fvinfo
It's a VBScript class that you can paste into
any script. It works by "cutting out the middleman".
While each of the above methods calls an
available object to get what that object can provide,
this class reads directly from the file's version info.
section, in the file's resource table. The other objects
get their info. from the same place, with a
sidetrack through the Windows API. By reading from
the resource table directly the class can return
anything that's been recorded there -- including
Comment, FileDescription, etc. -- and not just the
parts made avaiable through a given scripting object.
Quote:
> How do I get the value of the file version or product version property of
a
Quote:
> file in a VB script?
>