Command line for checking DLL versions

T

Tim_S

I am looking for a command line tool that can check the
version level of .dll files. Such as c:\program
files\common files\microsoft shared\vba\vbe6.dll

Right clicking on this file shows under version tab,
6.4.99.69

I need to extract this number in a batch file.

Any clues?
 
R

Ritchie

Tim_S said:
I am looking for a command line tool that can check the
version level of .dll files. Such as c:\program
files\common files\microsoft shared\vba\vbe6.dll

Parse the output of filever.exe using the FOR /F command. Post again
if you get stuck.

Filever.exe is part of the resource kit, but you'll also find it
on your Win2000 CD in \SUPPORT\TOOLS\SUPPORT.CAB. Either extract it
or run SETUP.EXE.

Bill also has his own version:-
http://mywebpages.comcast.net/stewartb/files/admtool2.zip
 
B

Bill Stewart

Tim_S said:
I am looking for a command line tool that can check the version level of
.dll files. Such as c:\program files\common files\microsoft
shared\vba\vbe6.dll

Right clicking on this file shows under version tab, 6.4.99.69

I need to extract this number in a batch file.

As Ritchie said, you can parse output of filever.exe.

You can also use my fver.exe to return an ERRORLEVEL based on if a file is
at least a particular version:

http://home.comcast.net/~stewartb/wast.html
 
T

Torgeir Bakken (MVP)

T

Tim_S

I found on another post someone had posted getver.exe which worked rather
nicely.
Thanks.
 

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

Top