Home > Archive > MSDN > April 2006 > Versions from dlls.
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Versions from dlls.
|
|
| Arinté 2006-04-03, 6:57 pm |
| Is there a way to get a version of a dll without right clicking? Meaning a
call that can be made from the command line or from another exe?
Thanks.
| |
| Dave English 2006-04-04, 7:56 am |
| In message <eTbAxY1VGHA.5592@TK2MSFTNGP09.phx.gbl>, Arinté
<defsetup@hotmail.com> writes
>Is there a way to get a version of a dll without right clicking? Meaning a
>call that can be made from the command line or from another exe?
I for one do not know of a standard command line that does that.
Versions numbers are stored with the resources structure of an
executable.
You can do this with VBScript in Windows scripting host.
There is a sample script here:
<http://www.ericphelps.com/scripting...perties/index.h
tml>
Try it using wscript. The sample lists all of the resource properties
of all of the files in a directory and stores them in a .csv file.
You can run that script from a command line using cscript. You would
want to get rid of the output directory dialog, just look at the
properties of one file and just print the version number, which is
property 37.
For more detail, see:
http://www.microsoft.com/technet/sc...l_lunl.mspx?mfr
=true>
Regards
--
Dave English Senior Software & Systems Engineer
Internet Platform Development, Thus plc
| |
| Dick Dawson 2006-04-04, 6:57 pm |
| Code examples here:
http://msdn.microsoft.com/library/d...oninfotopic.asp
"Arinté" <defsetup@hotmail.com> wrote in message
news:eTbAxY1VGHA.5592@TK2MSFTNGP09.phx.gbl...
> Is there a way to get a version of a dll without right clicking? Meaning
> a call that can be made from the command line or from another exe?
>
> Thanks.
>
| |
| Ronny Ong 2006-04-05, 3:57 am |
| The FILEVER command is part of the Windows Support Tools which you can
install from the \SUPPORT\TOOLS directory of a Windows XP/2003 CD-ROM, or
you can download the latest version from:
http://www.microsoft.com/downloads/...&displaylang=en
(This link is for 32-bit U.S. English; if you need a different version, just
search the Downloads site for "Support Tools.")
The Support Tools are packaged as an MSI, so you can easily push them out
across an Active Directory domain using GPO.
Once installed, you can simply run FILEVER without options to see the usage
syntax, or click the shortcut for Help which will be installed in the
"Windows Support Tools" folder under the Start Menu.
"Arinté" <defsetup@hotmail.com> wrote in message
news:eTbAxY1VGHA.5592@TK2MSFTNGP09.phx.gbl...
> Is there a way to get a version of a dll without right clicking? Meaning
> a call that can be made from the command line or from another exe?
|
|
|
|
|