[Tutor] Add metadata to a dir of files.

Mark Bystry mabystry at verizon.net
Thu Feb 22 19:39:31 CET 2007


getting even closer. figure out how to write to a file but still in vbscript.

dsofile_write.vbs
code:
Set objFile = CreateObject("DSOFile.OleDocumentProperties")
objFile.Open("D:\test.txt")
objFile.SummaryProperties.Category = "CAT54"
objFile.Save

Mark

Mark Bystry wrote the following on 2/22/2007 1:30 PM:
> 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.


More information about the Tutor mailing list