By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,550 Members | 1,189 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,550 IT Pros & Developers. It's quick & easy.

Accessing file metadata on windows XP

P: n/a
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..

My question is how can I programmatically read and change these data
with python. I know I should use Hammond's win32 extension, somehow
involving the pythoncom, storagecon of win32com etc.. Unfortunately,
so far I cannot get anything useful. Instead of trying blindly, would
somebody please points me to the correct direction. A little snippet
would help. I am particular interested in pdf files.

Nov 28 '06 #1
Share this Question
Share on Google+
2 Replies


P: n/a
wrote in news:11**********************@j72g2000cwa.googlegr oups.com in
comp.lang.python:
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..

My question is how can I programmatically read and change these data
with python. I know I should use Hammond's win32 extension, somehow
involving the pythoncom, storagecon of win32com etc.. Unfortunately,
so far I cannot get anything useful. Instead of trying blindly, would
somebody please points me to the correct direction. A little snippet
would help. I am particular interested in pdf files.
This looks like it might be useful:

<url:http://msdn.microsoft.com/library/de...l=/library/en-
us/shellcc/platform/shell/reference/objects/shellfolderitem/shellfolderit
em.asp>

Thats:

MSDN Home MSDN Library Win32 and COM Development User Interface
Windows Shell Windows Shell Shell Objects for Scripting and
Microsoft Visual Basic ShellFolderItem >

Rob.
--
http://www.victim-prime.dsl.pipex.com/
Nov 28 '06 #2

P: n/a

<wi*************@gmail.comwrote in message news:11**********************@j72g2000cwa.googlegr oups.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..

My question is how can I programmatically read and change these data
with python. I know I should use Hammond's win32 extension, somehow
involving the pythoncom, storagecon of win32com etc.. Unfortunately,
so far I cannot get anything useful. Instead of trying blindly, would
somebody please points me to the correct direction. A little snippet
would help. I am particular interested in pdf files.
See \win32com\test\testStorage.py for an example of using
the storage interfaces to read and write document summary
info.

Roger


----== Posted via Newsfeeds.Com - Unlimited-Unrestricted-Secure Usenet News==----
http://www.newsfeeds.com The #1 Newsgroup Service in the World! 120,000+ Newsgroups
----= East and West-Coast Server Farms - Total Privacy via Encryption =----
Nov 28 '06 #3

This discussion thread is closed

Replies have been disabled for this discussion.