Accessing file metadata on windows XP

Tim Golden Tim.Golden at viacom-outdoor.co.uk
Tue Nov 28 12:00:47 CET 2006


[wileyregister22 at gmail.com]

| When rightclicking a, for example, pdf file on windows, one normally
| gets a screen with three or four tags.  Clicking on one of the summary
| tag one can get some info like "title", "Author", "category", 
| "keyword"
| etc..

This (Delphi) article is about the most informative
I managed to dig up:

http://tinyurl.com/rx9hc


In short, you need to use the StgOpenStorageEx function
which the (pywin32) pythoncom module exposes. There are
quite a few caveats and you'll have to dig around for
flag/constants etc. but it should be quite do-able.

(Still don't have the time to try it myself, tho')

Happy Hunting!
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
________________________________________________________________________



More information about the Python-list mailing list