
File properties like getFileVersion ...
I've posted a component which does what you need. See the Post "An object
for analyzing version data", March 22, 2000. If you want to have FileVersion
and ProductVersion, simply use:
Set ver = GetVersion("version:yourfilename")
WScript.Echo ver.FileVersion, ver.ProductVersion
Enumerating the language specific data can be done by:
For Each key In ver.Items
WScript.Echo key & "=" & ver(key)
Next
Uwe
----------------
Quote:
> I need to collect all the file properties that you can see if you right
> click on a WIN32 binary in Explorer.
> Under Windows 2000, when I use the getFileVersion it actually returns the
> Product Version property. I need to get the File Version (and others).
> Any ideas? This is what I'm using to get the product version:
> --------------------------------------------------------------
> Sub GetVersion (aFile)
> Dim fso, rc
> Set fso = CreateObject("Scripting.FileSystemObject")
> rc = fso.getFileVersion (aFile)
> If Len(rc) Then
> WScript.Echo rc
> else
> WScript.Echo "No version information available."
> End If
> End Sub
> ---------------------------------------------------------------
> John Reeder