Re: Other version information



There are a few options:

This link is for a class that uses straight VBScript to parse
the file directly and extract whatever you want from the
VersionInfo resource, which is where the version info. is
stored:

www.jsware.net/jsware/scripts.php3#fvinfo

-----------

Another method requires WMI (assuming that you have WMI
installed and running, and that you don't mind wrestling with
the awkward WMI syntax):

Set oFil = GetObject("winMgmts:CIM_DataFile.Name='C:\file.exe'")

The CIM_DataFile object properties are mainly extended attributes
like CreationDate, Hidden, etc. but it also returns Manufacturer(?),
among other things. However, it doesn't directly encapsulate
PE file VersionInfo properties, and I don't think you can get
ProductVersion or ProductName that way.

http://msdn2.microsoft.com/en-us/library/aa387236.aspx

-----------

The FileSystemObject has a function GetFileVersion. (For some
reason they added a function to retrieve the VersionInfo but
then only made the Version property accessible!) File version
is not necessarily the same as ProductVersion, but it rarely
differs.

----------

Hi all,

Is any way to get the "other version information" like Product Name
and Product Version using VBScript ?

Thanks,
S.SARAVANA KUMAR


.


Loading