How to get the version of a file on WinOS?

Tim Golden mail at
Thu Mar 26 09:27:51 CET 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:

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


More information about the Python-list mailing list