How could I set file info properties like "Author", "Subject" and "Keywords" through .Net ?
Cheers,
NTG
Printable View
How could I set file info properties like "Author", "Subject" and "Keywords" through .Net ?
Cheers,
NTG
Probably not through managed code no.
I just set typed my name in the author field (in the above dialog you posted) and then opened the file and the string is actually embedded in the file itself rather than in the file system overhead. This means that different file formats might have different ways of storing this data.
I can only assume and hope that there is an API for this kind of thing.
That happens with MS Office documents, but not with other file types - if you try it with a text file, nothing gets embedded in the actual file contents.Quote:
Originally Posted by wossname
This must be managed through Structured Storage and is indeed available via APIs. I was just wondering if there's a .Net equivalent to this.
Cheers,
NTG
you can use the IPropertyStorage interface for this , see msdn ... here
you can also use the Shell class along with the shell.Folder.GetDetailsOf ( FolderItem , Index )
Thanks sysop, structured storage it is then. :(