Re: Other version information
- From: Saravana <saravanakumars@xxxxxxxxxxxxx>
- Date: Thu, 3 Jan 2008 03:05:47 -0800 (PST)
On Jan 2, 6:40 pm, "mayayana" <mayaXXyan...@xxxxxxxxxxxxxxxx> wrote:
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
Hi,
That link really helps.And I come to know there is no methods
available to get these details like FileSystemObject's
GetFileVersion().The class in the above link is very complex to
understand,Is any other class or methods provide these details ? It
may be more helpful.
Thanks again for immediate response
S.SARAVANAKUMAR
.
- Follow-Ups:
- Re: Other version information
- From: mayayana
- Re: Other version information
- From: mayayana
- Re: Other version information
- References:
- Other version information
- From: Saravana
- Re: Other version information
- From: mayayana
- Other version information
- Prev by Date: Re: formatting output to be sorted by largest size
- Next by Date: RE: Having a link launch Word
- Previous by thread: Re: Other version information
- Next by thread: Re: Other version information
- Index(es):