Re: Other version information
- From: "mayayana" <mayaXXyana1a@xxxxxxxxxxxxxxxx>
- Date: Wed, 2 Jan 2008 08:40:48 -0500
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
.
- Follow-Ups:
- Re: Other version information
- From: Saravana
- Re: Other version information
- References:
- Other version information
- From: Saravana
- Other version information
- Prev by Date: Re: Get IP function error message 800a03ea
- Next by Date: RE: Having a link launch Word
- Previous by thread: Other version information
- Next by thread: Re: Other version information
- Index(es):
Loading