Home All Groups Group Topic Archive Search About

Getting Extended File Properties

Author
7 Mar 2006 10:29 PM
Tina
I need to obtain the extended file properties, such as Owner, Title, etc,
for a file in a .net program.  I have looked through the FileInfo class and
I cannot see any methods or properties that will expose this.  In the old
days we used to use GetFileInfo but I don't see it in .Net anywhere.

How can I get this information?
Thanks,
T

Author
8 Mar 2006 8:46 AM
R. MacDonald
Hello, Tina,

If you mean the extended file properties available on NTFS systems, I
think that you will need to use DSOFile.dll for this.  See

     http://support.microsoft.com/?id=224351

for details.  (There is a problem if you need to create these properties
for files that don't already have them.  There was recently a posting
about a solution for this.  See

     http://www.codecomments.com/archive293-2006-2-813451.html

if you need to do this.

Cheers,
Randy


Tina wrote:
Show quoteHide quote
> I need to obtain the extended file properties, such as Owner, Title, etc,
> for a file in a .net program.  I have looked through the FileInfo class and
> I cannot see any methods or properties that will expose this.  In the old
> days we used to use GetFileInfo but I don't see it in .Net anywhere.
>
> How can I get this information?
> Thanks,
> T
>
>