Looking for proper MP3 syntax accessing

M

MikeY

I am having trouble with and looking for the proper syntax for accessing and
renaming MP3 files properties.

Example I can access the "Name" property of the file and I can rename the
file name to a new name (and do this in mass quantity at once). What I want
to accomplish is to gain access and rename the extended properties such as
"Artist", "Title", "Album Title", "Comments", etc. A sample of my code is as
follows.

if(txtBoxNameConversion.Text != "")
{
foreach(string myItem in CLBoxGroupFileConversion.CheckedItems)
{
string myItems2 = txtBoxNameConversion.Text + "-" + myItem;

//Over-write old file with new file name
File.Move(Path.Combine(currentFolderPath, myItem),
Path.Combine(currentFolderPath, myItem2));
}
}

Any and all suggestions are appreciated. Thank you all in advance.


MikeY
 
T

The Last Gunslinger

MikeY said:
I am having trouble with and looking for the proper syntax for accessing and
renaming MP3 files properties.

Example I can access the "Name" property of the file and I can rename the
file name to a new name (and do this in mass quantity at once). What I want
to accomplish is to gain access and rename the extended properties such as
"Artist", "Title", "Album Title", "Comments", etc. A sample of my code is as
follows.

if(txtBoxNameConversion.Text != "")
{
foreach(string myItem in CLBoxGroupFileConversion.CheckedItems)
{
string myItems2 = txtBoxNameConversion.Text + "-" + myItem;

//Over-write old file with new file name
File.Move(Path.Combine(currentFolderPath, myItem),
Path.Combine(currentFolderPath, myItem2));
}
}

Any and all suggestions are appreciated. Thank you all in advance.


MikeY

The info you want is actually the ID3 (v 1/2) tags embedded into the mp3
file.
There is an open source project on sourceforge.com called id3lib which
which has a com wrapper which can then be used in your project and is
very good.

HTH
JB
 
M

MikeY

Thank you JB will go look for it now.


The Last Gunslinger said:
The info you want is actually the ID3 (v 1/2) tags embedded into the mp3
file.
There is an open source project on sourceforge.com called id3lib which
which has a com wrapper which can then be used in your project and is
very good.

HTH
JB
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top