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.
_______________________________________________
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor

Reply via email to