win32api .GetFileVersionInfo()

X

xytho33

I need to be able to programatically 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 Mark Hammond's Python Extensions
(http://starship.python.net/crew/mhammond/) The package includes a
little demo program "filevers.py" distributed in the win32api download
that does exactly what I need.

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? "fname", in the code snippit above, contains the name of
a DLL compiled with MS Visual Studio .NET 2003.

Thanks,
 
P

Peter Hansen

xytho33 said:
I need to be able to programatically get the version info from a
windows DLL preferably in the same format as what is displayed in the
properties tab.
[snip]

You already posted this about forty minutes earlier and
Dennis Lee Bieber wrote a reply a mere ten minutes later.
Please be patient and check for replies before reposting.
 

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

Members online

No members online now.

Forum statistics

Threads
473,780
Messages
2,569,608
Members
45,241
Latest member
Lisa1997

Latest Threads

Top