[python-win32] NTFS: editing properties of a file

Roger Upole rwupole at msn.com
Thu Aug 25 22:24:42 CEST 2005


StgOpenStorageEx allows you to access the NTFS
extended document properties.  Take a look at
\win32com\test\testStorage.py for examples of
how it's used from Python.

    hth
        Roger


Thomas Weiner wrote:

> Hi all,
> 
> is it possible to read and edit the extended properties of a file on 
> NTFS drives? For example: with the explorer you get properties like 
> Title, Author, Subject, Category etc by right clicking. I want to use 
> and edit these fields programmaticly.
> 
> In pythonwin I've found methods for Office files (which store the 
> informations above differently) and for the version strings of dll and 
> exe, but nothing for other files.
> 
> Thanks,
> Thomas




More information about the Python-win32 mailing list