473,785 Members | 2,307 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Extended File Properties

Hello,
I'd like to read the extended file properties using C#. Those are e.g.
author, subject, ... of a word file or bit rate, artist, duration of a mp3
file. I already tried to use the storage properties provided by OLE, but
those only work for Office document. The explorer displays this information
but I have no clue to access from C#. Hints and Help are appreciated.
Regards,
-- David
Nov 16 '05 #1
4 8677
http://tinyurl.com/6sd6s

Sounds like Nicholas Paldino's the guy who can help with this.
Good luck.
"David Farruggio" <da************ *@ch.abb.com> wrote in message
news:41******** *************@n ews.sunrise.ch. ..
Hello,
I'd like to read the extended file properties using C#. Those are e.g.
author, subject, ... of a word file or bit rate, artist, duration of a mp3
file. I already tried to use the storage properties provided by OLE, but
those only work for Office document. The explorer displays this
information
but I have no clue to access from C#. Hints and Help are appreciated.
Regards,
-- David

Nov 16 '05 #2
I already looked in the IProperties as proposed by Nicholas Paldino.
Unfortunatly this works only for MS Office documents (to be more precise,
for documents following OLE). E.g. it doesn't work for mp3 files, which have
that information to as can be seen in the explorer in the detail view. Is
there a possibility to access the information from C#?
Thanks for your help
-- David

"Dan Bass" <danielbass [at] postmaster [dot] co [dot] uk> wrote in message
news:uE******** ******@TK2MSFTN GP11.phx.gbl...
http://tinyurl.com/6sd6s

Sounds like Nicholas Paldino's the guy who can help with this.
Good luck.
"David Farruggio" <da************ *@ch.abb.com> wrote in message
news:41******** *************@n ews.sunrise.ch. ..
Hello,
I'd like to read the extended file properties using C#. Those are e.g.
author, subject, ... of a word file or bit rate, artist, duration of a mp3 file. I already tried to use the storage properties provided by OLE, but
those only work for Office document. The explorer displays this
information
but I have no clue to access from C#. Hints and Help are appreciated.
Regards,
-- David


Nov 16 '05 #3
What about this?

http://www.c-sharpcorner.com/Tools/MP3TagEditorB2PL.asp
"David Farruggio" <da************ *@ch.abb.com> wrote in message
news:41******** **************@ news.sunrise.ch ...
I already looked in the IProperties as proposed by Nicholas Paldino.
Unfortunatly this works only for MS Office documents (to be more precise,
for documents following OLE). E.g. it doesn't work for mp3 files, which
have
that information to as can be seen in the explorer in the detail view. Is
there a possibility to access the information from C#?
Thanks for your help
-- David

"Dan Bass" <danielbass [at] postmaster [dot] co [dot] uk> wrote in message
news:uE******** ******@TK2MSFTN GP11.phx.gbl...
http://tinyurl.com/6sd6s

Sounds like Nicholas Paldino's the guy who can help with this.
Good luck.
"David Farruggio" <da************ *@ch.abb.com> wrote in message
news:41******** *************@n ews.sunrise.ch. ..
> Hello,
> I'd like to read the extended file properties using C#. Those are e.g.
> author, subject, ... of a word file or bit rate, artist, duration of a mp3 > file. I already tried to use the storage properties provided by OLE,
> but
> those only work for Office document. The explorer displays this
> information
> but I have no clue to access from C#. Hints and Help are appreciated.
> Regards,
> -- David
>
>



Nov 16 '05 #4
Hi,
This is getting closer. Anyway it uses the file structure of the MP3 file so
I can't use for a more general solution to display and edit the properties
if any file I know or I don't such as the Windows Explorer does. I wonder if
the properties are stored and can be accessed in a more structured way.
Regards
-- David

"Dan Bass" <danielbass [at] postmaster [dot] co [dot] uk> wrote in message
news:eN******** ******@TK2MSFTN GP09.phx.gbl...
What about this?

http://www.c-sharpcorner.com/Tools/MP3TagEditorB2PL.asp
"David Farruggio" <da************ *@ch.abb.com> wrote in message
news:41******** **************@ news.sunrise.ch ...
I already looked in the IProperties as proposed by Nicholas Paldino.
Unfortunatly this works only for MS Office documents (to be more precise, for documents following OLE). E.g. it doesn't work for mp3 files, which
have
that information to as can be seen in the explorer in the detail view. Is there a possibility to access the information from C#?
Thanks for your help
-- David

"Dan Bass" <danielbass [at] postmaster [dot] co [dot] uk> wrote in message news:uE******** ******@TK2MSFTN GP11.phx.gbl...
http://tinyurl.com/6sd6s

Sounds like Nicholas Paldino's the guy who can help with this.
Good luck.
"David Farruggio" <da************ *@ch.abb.com> wrote in message
news:41******** *************@n ews.sunrise.ch. ..
> Hello,
> I'd like to read the extended file properties using C#. Those are e.g. > author, subject, ... of a word file or bit rate, artist, duration of
a mp3
> file. I already tried to use the storage properties provided by OLE,
> but
> those only work for Office document. The explorer displays this
> information
> but I have no clue to access from C#. Hints and Help are appreciated.
> Regards,
> -- David
>
>



Nov 16 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
2672
by: Tyrone | last post by:
How do you go about reading the extended properties of a file. (jpg)
4
14949
by: Markus Brenner | last post by:
Hi there! Hope anybody can help. I want to at least read (maybe write) the extended file properties of office documents like winword, excel, .... I've tried two ways till now, one by opening the responding application (this method was to slow for my needs). The other way was using the dsofile.dll from microsoft. With that, first, it seemed to work.
1
5986
by: Corey Ellsworth | last post by:
Does anybody know how to read/write extended file properties such as comments, keywords, author, etc. in VB.NET? I can't find anything anywhere. It may be because I don't know where to start or even what these properties (attached to all files in Windows XP) are called. Any help will be appreciated. Thanks. Corey Ellsworth
0
1556
by: archana | last post by:
Hi all, I wrote one application to read excel files data into datatable. To get data of excel file into datatable i used oledbconnection. In connectonstring i set extended properties as excel 8.0. My question is for excel, will extended properties be always 8.0. Or it may varies depending on excel version installed on client PC.
0
306
by: Tina | last post by:
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 GetDetailsOf but I don't see it in .Net anywhere. How can I get this information? Thanks, T
1
3325
by: Tina | last post by:
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
0
1236
by: TN | last post by:
I created a dataset in code (with extended properties on the table and the columns) and I saved the schema (the properties were there). Now I am trying to take that .xsd file and generate a dataset class. Problem is xsd blows off the extended property definition when it creates the ..cs file. What's up... this is a show-stopper? Is this really true? (VS 2005) Thanks.
0
996
by: jcvoon | last post by:
Hi: How to notify extended properties provider when the component is removed ? so that i can deleted the entry for that component from extended properties holder (the collection use to hold all the extended properties value). Thanks JCVoon
3
3567
by: Ben | last post by:
Hi! I have a user on my database that has only "select" access (db_datareader). Problem is, I also want him to also be able to create/update extended properties on tables or views, but without modifying the tables' schema. I played around with GRANT but apparently, a member of "db_datareader" cannot create/modify extended properties on an object if he's not the owner of this object. I tried making this user a member of
0
9489
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10162
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9959
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8988
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7509
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6744
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5528
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4063
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2893
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.