Reading Windows .exe version info from Python

Thomas Heller theller at python.net
Thu Feb 6 02:48:16 EST 2003


Shay Telfer <dontspamshay at cygnus.uwa.edu.au> writes:

> Hi...
> 
> Any ideas how I can read the version information (ie major, minor, 
> release and build version numbers) from Windows .exe and .dll files from 
> Python?

There recipes in the Python cookbook, and the ctypes source distribution
also includes a sample script.

http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/117219
http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/67682

http://starship.python.net/crew/theller/ctypes.html
http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/ctypes/ctypes/samples/Windows/VersionInfo.py?rev=HEAD&content-type=text/vnd.viewcvs-markup

Thomas




More information about the Python-list mailing list