|
I've been trying to get (and eventually set) file-related information (e.g.,
title or comment) in the properties that you can attach to any file on Win2K
(at least using NTFS), but the only way I've found is something like this:
myStorage := IStorage open: someFilename. "some file that has a document
properties"
myPropSet := myStorage openStream: (Character value: 5) asString,
'SummaryInformation'.
myPropSet contents asString inspect
The variable myPropSet contains a stream whose contents could be parsed to get
the info, but that seems pretty crude. It also seems like, since the OS
obviously has access to these file properties, there should be a more
straightforward way to do it, presumably through the IPropertySetStorage and
IPropertyStorage interfaces.
Does anybody have any experience with this stuff?
TIA,
Don
|