HighTechTalks DotNet Forums  

Getting and changing File Summry information

Dotnet Framework (CLR) microsoft.public.dotnet.framework.clr


Discuss Getting and changing File Summry information in the Dotnet Framework (CLR) forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
Hiten
 
Posts: n/a

Default Getting and changing File Summry information - 06-03-2006 , 08:13 AM






Hi,

I am trying to find a way to get and change file summary information. I
tried using FileInfo class, but it doesn't give me information such as
"Author,Title,Rating" etc. Is there a way to get and change these information
using .NET libraries?

Sample would be a great help...

Thanks
Hiten

Reply With Quote
  #2  
Old   
Michael Phillips, Jr.
 
Posts: n/a

Default Re: Getting and changing File Summry information - 06-03-2006 , 12:21 PM






Not without writing your own IPropertyStorage com interop assembly.

You can adapt the code provided by Microsoft in this KB article for your
needs:
http://support.microsoft.com/?id=224351

"Hiten" <Hiten (AT) discussions (DOT) microsoft.com> wrote

Quote:
Hi,

I am trying to find a way to get and change file summary information. I
tried using FileInfo class, but it doesn't give me information such as
"Author,Title,Rating" etc. Is there a way to get and change these
information
using .NET libraries?

Sample would be a great help...

Thanks
Hiten



Reply With Quote
  #3  
Old   
=?Utf-8?B?SGl0ZW4=?=
 
Posts: n/a

Default Re: Getting and changing File Summry information - 06-05-2006 , 04:27 PM



I tried the URL u provided about DsoFile from microsoft, the only thing is...
I am getting Access Denied error when i tries to change a property of .mp3
file, however, it works on microsoft documents such as excel, visio document
etc. Do you think the DsoFile library is for microsoft documents only?

Any other suggestion??

thanks,
Hiten

"Michael Phillips, Jr." wrote:

Quote:
Not without writing your own IPropertyStorage com interop assembly.

You can adapt the code provided by Microsoft in this KB article for your
needs:
http://support.microsoft.com/?id=224351

"Hiten" <Hiten (AT) discussions (DOT) microsoft.com> wrote in message
news:70088B39-3FB0-4573-8551-BD458631D7A6 (AT) microsoft (DOT) com...
Hi,

I am trying to find a way to get and change file summary information. I
tried using FileInfo class, but it doesn't give me information such as
"Author,Title,Rating" etc. Is there a way to get and change these
information
using .NET libraries?

Sample would be a great help...

Thanks
Hiten




Reply With Quote
  #4  
Old   
Michael Phillips, Jr.
 
Posts: n/a

Default Re: Getting and changing File Summry information - 06-06-2006 , 02:27 PM



The DsoFile Library was written specifically for Office Documents. You must
use the IPropertyStorage API to edit these properties. The code to use the
API is supplied. You can easily extend the code for non Office files.


"Hiten" <Hiten (AT) discussions (DOT) microsoft.com> wrote

Quote:
I tried the URL u provided about DsoFile from microsoft, the only thing
is...
I am getting Access Denied error when i tries to change a property of .mp3
file, however, it works on microsoft documents such as excel, visio
document
etc. Do you think the DsoFile library is for microsoft documents only?

Any other suggestion??

thanks,
Hiten

"Michael Phillips, Jr." wrote:

Not without writing your own IPropertyStorage com interop assembly.

You can adapt the code provided by Microsoft in this KB article for your
needs:
http://support.microsoft.com/?id=224351

"Hiten" <Hiten (AT) discussions (DOT) microsoft.com> wrote in message
news:70088B39-3FB0-4573-8551-BD458631D7A6 (AT) microsoft (DOT) com...
Hi,

I am trying to find a way to get and change file summary information. I
tried using FileInfo class, but it doesn't give me information such as
"Author,Title,Rating" etc. Is there a way to get and change these
information
using .NET libraries?

Sample would be a great help...

Thanks
Hiten






Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.