Sysop: | Amessyroom |
---|---|
Location: | Fayetteville, NC |
Users: | 26 |
Nodes: | 6 (1 / 5) |
Uptime: | 71:48:37 |
Calls: | 482 |
Calls today: | 1 |
Files: | 1,072 |
Messages: | 96,873 |
Hi All,
Is there a file version api, like filever.exe to
read the embedded version of a file?
Many thanks,
-T
On 2/2/2025 9:33 PM, T wrote:
Hi All,In version.dll. GetFileVersionInfoSize, GetFileVersionInfo
Is there a file version api, like filever.exe to
read the embedded version of a file?
Many thanks,
-T
and VerQueryValue.
It's fairly involved. Assuming that you're not generally dealing
with Win32 API, you could use the much simpler VBScript
method:
Dim FSO, s
Set FSO = CreateObject("Scripting.FileSystemObject")
s = FSO.GetFileVersion("C:\Windows\system32\shell32.dll")
MsgBox s
Set FSO = Nothing