Retrieving an EXE's properties

  • Thread starter Thread starter dsmcd
  • Start date Start date
D

dsmcd

Hello...

Right-clicking an EXE give a Properties window, and one of
the tabs is Version. I'd like to report that version info
automatically. Where is that kept? It's not in the registry
that I can see.

Any suggestions?

Thx,
D.
 
dsmcd said:
Right-clicking an EXE give a Properties window, and one of
the tabs is Version. I'd like to report that version info
automatically. Where is that kept? It's not in the registry
that I can see.

The infomration is imbedded in the file itself. Programs such as FileVer
from the resource kit display this information. There may be a free
equivalent available.
 
dsmcd said:
Right-clicking an EXE give a Properties window, and one of
the tabs is Version. I'd like to report that version info
automatically. Where is that kept? It's not in the registry
that I can see.

Hi

No, it is not in the registry, it is embedded in the file itself. You can get
it with e.g. a VBScript or a command line utility.

VBScript:

sFile = "path to some file here"
Set oFSO = CreateObject("Scripting.FileSystemObject")
MsgBox oFSO.GetFileVersion(sFile)


Command line utilities:

A)
Filever.exe is in the Win2k Support Tools found on the Win2k CD,
\Support\Tools\Suptools.msi, or for the latest version of
Support Tools (should work on non-SP4 computers as well):

http://www.microsoft.com/windows2000/downloads/servicepacks/sp4/supporttools.asp



B)
A better, more versatile fver.exe (free) is available here:

http://mywebpages.comcast.net/stewartb/wast.html

If you don't specify a version to check for, the program will simply report the
file's version as output.
 
Gary said:
The infomration is imbedded in the file itself. Programs such as FileVer
from the resource kit display this information.

Hi

As far as I see, it is not part of the Win2000 Resource Kit (not the
Pro version at least), but it is in the free Support tools kit.
 
Torgeir Bakken (MVP) said:
Gary Smith wrote:

As far as I see, it is not part of the Win2000 Resource Kit (not the
Pro version at least), but it is in the free Support tools kit.

You're probably right. I have a mix of things on this system and can't
always tell where they came from.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top