[Tim Golden] | [Greg Miller] | | | I didn't have this problem on the | | first release | | as we weren't interested in displaying the file version of the .dll. | | With this improved version of the product the request has | come down to | | have all software package versions displayed, so that is | why I am now | | attempting to extract the file version of the dll. Thanks again for | | everyone's assistance................. | | There was some talk a while back about including the win32 | calls to get file versions into the pywin32 packages. Might | be worth checking to see if it's happened. Or using ctypes, | of course. If WMI is this much trouble, and only for this one | piece of info, definitely worth looking elsewhere. | | TJG
In fact, check out the win32api.GetFileVersionInfo function. <code> import os, sys import win32api win32api.GetFileVersionInfo (os.path.join (sys.exec_prefix, "python24.dll"), "\\") </code> You'll have to look in the demos directory for examples and in the docs, but maybe this will save you a bit of grief. TJG ________________________________________________________________________ This e-mail has been scanned for all viruses by Star. The service is powered by MessageLabs. For more information on a proactive anti-virus service working around the clock, around the globe, visit: http://www.star.net.uk ________________________________________________________________________ -- http://mail.python.org/mailman/listinfo/python-list