472,796 Members | 2,258 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,796 software developers and data experts.

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 5734
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

35
by: NickName | last post by:
I understand it's easy to list all saved queries of a given Access database via Msysobjects system table. However, I have not seen any posting over this NG or other similar ones that also include...
0
by: jim z | last post by:
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...
6
by: Ian Williamson | last post by:
Greetings, My company has an ASP.NET based enterprise product that is undergoing some changes and I need some community input to help solve a problem. In the current implementation, any given...
1
by: tangus via DotNetMonster.com | last post by:
Hello all, I'm really struggling with getting some Active Directory code to work in ASP.NET. Can you please provide assistance? I am executing the following code: Dim enTry As DirectoryEntry =...
3
by: Charles Law | last post by:
Word has a property BuiltinDocumentProperties, which (in VBA) returns a DocumentProperties collection. In VB.NET, using Word automation, it returns a _ComObject. I have tried to cast this to...
0
by: Andy | last post by:
Hi All. I'm working for a company that has set out a guideline for retrieving data from a database. Nobody can explain to me the reason for the following. When retrieving a set of records...
10
by: Dan | last post by:
I use the settings grid to create a setting named "ServerName". Now i want to retrieve it in code and i can't figure out how. This should be incredibly obvious but i cant get it. I have tried...
1
by: mehdi_mousavi | last post by:
Hi folks, Consider a string that's defined under VS2005 resource editor as myField with the value of myValue. To access the value, I could easily use the Properties.Resources class, for example:...
5
by: Randy Smith | last post by:
Hi ALL, I wonder if anyone has been using n-tier to bind to a GridView control by using the ObjectDataSource. This is our first OOP web application, and we have no tables. Right now we are...
3
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 2 August 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
0
by: erikbower65 | last post by:
Using CodiumAI's pr-agent is simple and powerful. Follow these steps: 1. Install CodiumAI CLI: Ensure Node.js is installed, then run 'npm install -g codiumai' in the terminal. 2. Connect to...
0
by: kcodez | last post by:
As a H5 game development enthusiast, I recently wrote a very interesting little game - Toy Claw ((http://claw.kjeek.com/))。Here I will summarize and share the development experience here, and hope it...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Sept 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
14
DJRhino1175
by: DJRhino1175 | last post by:
When I run this code I get an error, its Run-time error# 424 Object required...This is my first attempt at doing something like this. I test the entire code and it worked until I added this - If...
5
by: DJRhino | last post by:
Private Sub CboDrawingID_BeforeUpdate(Cancel As Integer) If = 310029923 Or 310030138 Or 310030152 Or 310030346 Or 310030348 Or _ 310030356 Or 310030359 Or 310030362 Or...
0
by: lllomh | last post by:
Define the method first this.state = { buttonBackgroundColor: 'green', isBlinking: false, // A new status is added to identify whether the button is blinking or not } autoStart=()=>{
0
by: lllomh | last post by:
How does React native implement an English player?
2
by: DJRhino | last post by:
Was curious if anyone else was having this same issue or not.... I was just Up/Down graded to windows 11 and now my access combo boxes are not acting right. With win 10 I could start typing...

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.