How to get the version of a file on WinOS?

Tim Golden mail at timgolden.me.uk
Thu Mar 26 04:27:51 EDT 2009


Hill wrote:
> As you know , we can see the file version from by "right click menu
> and click the detail tab".
> Now i am wondering how to get this version number using python?
> Thanks very much!

If you're talking about a .DLL then this is probably
what you're looking for:

http://timgolden.me.uk/python/win32_how_do_i/get_dll_version.html

If you're talking about something else, say a Word doc
or some other structured storage file, the answer's
more complicated.

TJG



More information about the Python-list mailing list