[python-win32] Re: filling Windows properties "Summary" tab?
rwupole at msn.com
Wed Dec 21 09:07:28 CET 2005
> I am reading the discussion of "filling Windows properties "Summary" tab?"
> on 2005-06-23:
> I too am interesting in finding out a way to read and write the summary
> propreties. It isn't very clear for me from the thread that what classes
> of if there are any sample program I can use. A more basic issue is I
> would like to write some meta data for any kind of files (even for folders
> if possible). There are mention of COM "structured storage" files like MS
> office documents. However I am able to set this for a simple text file. On
> the other hand this summary is not available if I rename it to .html. Much
> appreciate if you can help me to understand this.
The function to access document properties for non-COM
files is StgOpenStorageEx. Take a look at
\win32com\test\testStorage.py for an example of
how to use it. However, it doesn't work for directories.
The reason you don't see the Summary tab for .html files is
because property sheet handlers are registered per file
extension, and the document summary handler apparently
isn't registered for .html. However, you can still access the
More information about the Python-win32