I think I'm getting close but with the wrong programming language...

filename: test.vbs
code:
Set objFile = CreateObject("DSOFile.OleDocumentProperties")
objFile.Open("C:\test.txt")
Wscript.Echo "Category: " & objFile.SummaryProperties.Category

With the help of dsofile.dll the above reads the "Category" attribute of 
test.txt.


Mark Bystry wrote the following on 2/22/2007 1:01 PM:
> Actually no. I want to change the Windows metadata. This is the same metadata 
> that is on all files. 
> It isn't PDF specific. (I wonder if Linux is the same)
> 
> Basically, I can select 100's of file in a dir, right-click, properties, 
> summary, and add something 
> to the Category field. This obviously affects all files giving them all the 
> same attribute. I can 
> continue doing it this way but I thought perhaps a script would be best. 
> Maybe it isn't, I don't know.
> 
> Anyway, thank-you for the links.
> 
> Mark
> 
_______________________________________________
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor

Reply via email to