469,946 Members | 1,929 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,946 developers. It's quick & easy.

Retrieving properties of a file name...

My goal is to write a program in C# that will take the Artist and Title of
an MP3 file and change the name of the file to a concatenated combination of
the two. In order to do this, I am trying to find the correct object or
property to
implement. I have found information about the file name itself and the
extensions (among other things), but not specific details about an
individual file.

In case what I am explaining may seem somewhat vague, basically, in Windows
XP, you can right-click on a file and retrieve the properties of that file.
In addition, certain files that XP recognizes as having distinct traits will
respectively have their own properties available for modification in a tab
called "Summary", according to the file's extension. If a file is a text
document (of file extension .txt), it will make available fields like Title,
Subject, Category, Keyword, Comments, etc. What I am referring to can be
accessed by clicking a tab called "Summary" and a button called "Advanced",
after gaining access to the file's properties.

If anyone can help me with this, please let me know...Thanks.
Nov 15 '05 #1
2 5624
Try these:

http://msdn.microsoft.com/library/de...html/ntfs5.asp

http://groups.google.com/groups?q=fi...tngxa09&rnum=2

Brad Williams
"ironwall22z" <ir*********@hotmail.com> wrote in message
news:OD*************@TK2MSFTNGP11.phx.gbl...
My goal is to write a program in C# that will take the Artist and Title of
an MP3 file and change the name of the file to a concatenated combination of the two. In order to do this, I am trying to find the correct object or
property to
implement. I have found information about the file name itself and the
extensions (among other things), but not specific details about an
individual file.

In case what I am explaining may seem somewhat vague, basically, in Windows XP, you can right-click on a file and retrieve the properties of that file. In addition, certain files that XP recognizes as having distinct traits will respectively have their own properties available for modification in a tab
called "Summary", according to the file's extension. If a file is a text
document (of file extension .txt), it will make available fields like Title, Subject, Category, Keyword, Comments, etc. What I am referring to can be
accessed by clicking a tab called "Summary" and a button called "Advanced", after gaining access to the file's properties.

If anyone can help me with this, please let me know...Thanks.

Nov 15 '05 #2
The Artist and Title of an MP3 are stored in a specialized file header
called the ID3 tag. Early versions of the ID3 standard stored a small
number of fixed-width fields, whereas later versions allowed the storage of
dozens of different specialized properties, including binary data such as
pictures. (See www.id3.org for details.)

In order to read these data, you'll need to use one of the ID3 tag editor
libraries available. There is one in the Media Player SDK, but it's not
managed code, so you'll have to write a .NET wrapper. (I don't have a link,
but a search on "ID3" on MSDN should get you there.) Or...you could try out
my library. ;-) I've written a free, yet comprehensive ID3 tag editing
..NET library called UltraID3Lib. It was written from the ground up in fully
managed code and implements most of the ID3 standard's seventy-four Frames
as individual classes with properties specific to the data it contains.

If you are interested in UltraID3Lib, please go to
www.hundredmilessoftware.com and click on the UltraID3Lib. More details and
download instructions are available there. Again, UltraID3Lib is free.

- Mitchell S. Honnert
"ironwall22z" <ir*********@hotmail.com> wrote in message
news:OD*************@TK2MSFTNGP11.phx.gbl...
My goal is to write a program in C# that will take the Artist and Title of
an MP3 file and change the name of the file to a concatenated combination of the two. In order to do this, I am trying to find the correct object or
property to
implement. I have found information about the file name itself and the
extensions (among other things), but not specific details about an
individual file.

In case what I am explaining may seem somewhat vague, basically, in Windows XP, you can right-click on a file and retrieve the properties of that file. In addition, certain files that XP recognizes as having distinct traits will respectively have their own properties available for modification in a tab
called "Summary", according to the file's extension. If a file is a text
document (of file extension .txt), it will make available fields like Title, Subject, Category, Keyword, Comments, etc. What I am referring to can be
accessed by clicking a tab called "Summary" and a button called "Advanced", after gaining access to the file's properties.

If anyone can help me with this, please let me know...Thanks.

Nov 15 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by jim z | last post: by
6 posts views Thread by Ian Williamson | last post: by
1 post views Thread by tangus via DotNetMonster.com | last post: by
1 post views Thread by mehdi_mousavi | last post: by
5 posts views Thread by Randy Smith | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.