Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > Re: DLL version number

Reply
Thread Tools

Re: DLL version number

 
 
xytho33
Guest
Posts: n/a
 
      03-24-2005
I also need to be able to get the version info from a windows DLL
preferably in the same format
as what is displayed in the properties tab.

I was overjoyed to find the little demo program filevers.py distributed in
the win32api download.

Unfortunately I get this error when I execute the script:

C:\work>getfilever.py
Traceback (most recent call last):
File "C:\work\getfilever.py", line 8, in ?
d=win32api.GetFileVersionInfo(fname, '\\')
pywintypes.error: (1812, 'GetFileVersionInfo:GetFileVersionInfoSize', 'The
specified image file did not contain a resource section.')

Anybody know what this means, or more importantly, if there is a
work-around?

Thanks,


 
Reply With Quote
 
 
 
 
Dennis Lee Bieber
Guest
Posts: n/a
 
      03-25-2005
On Thu, 24 Mar 2005 18:53:00 -0500, "xytho33" <(E-Mail Removed)>
declaimed the following in comp.lang.python:

> d=win32api.GetFileVersionInfo(fname, '\\')
> pywintypes.error: (1812, 'GetFileVersionInfo:GetFileVersionInfoSize', 'The
> specified image file did not contain a resource section.')
>
> Anybody know what this means, or more importantly, if there is a
> work-around?
>

Work around -- catch the exception...

What it means is that the file you gave the call does not have a
standard resource section... IE, the file doesn't have the "version
block" defined.

--
> ================================================== ============ <
> http://www.velocityreviews.com/forums/(E-Mail Removed) | Wulfraed Dennis Lee Bieber KD6MOG <
> (E-Mail Removed) | Bestiaria Support Staff <
> ================================================== ============ <
> Home Page: <http://www.dm.net/~wulfraed/> <
> Overflow Page: <http://wlfraed.home.netcom.com/> <

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: Where to get stand alone Dot Net Framework version 1.1, version2.0, version 3.0, version 3.5, version 2.0 SP1, version 3.0 SP1 ? MowGreen [MVP] ASP .Net 5 02-09-2008 01:55 AM
Re: Where to get stand alone Dot Net Framework version 1.1, version 2.0, version 3.0, version 3.5, version 2.0 SP1, version 3.0 SP1 ? PA Bear [MS MVP] ASP .Net 0 02-05-2008 03:28 AM
Re: Where to get stand alone Dot Net Framework version 1.1, version 2.0, version 3.0, version 3.5, version 2.0 SP1, version 3.0 SP1 ? V Green ASP .Net 0 02-05-2008 02:45 AM
How to determine if a DLL is a COM DLL or .NET DLL Anushi ASP .Net 5 10-28-2004 01:59 PM
msvcrt.dll, msvcirt.dll, msvcrt20.dll and msvcrt40.dll, explanation please! Snoopy NZ Computing 16 08-25-2003 12:34 PM



Advertisments