renaming music files for recording


i have a music system, that is programmable to copy music files into MP3 folders
the folders are named : CDREC001, CDREC002, CDREC003 ....
the music files are named in each folder Disc1T01.mp3, Disc1T02.mp3, Disc1T03.mp3

when i want to copy these into 1 folder (to put them on an USB stick, for listening in the car), i obviously get files with the same name.
so i am looking for 2 solutions (or more if you think up others) :
1-a batch file that renames all the files from these folders into a different name, say music001 up to music999
2-a system to recognise the mp3 music files, and restore it's name (and player)
i know these exist for mobile phoses, but i did not find a good working solution for PC's

thank you in advance

LVL 94
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

I've tried several tools that would answer your second requirement but they are all bad, show wrong information and cannot find a huge amount of songs. If you want to have the CD information the best it to open them (the original CDs) with a player which downloads CD data (Windows Media Player can do that) and then rip the CD asking the application to set the correct names (again Windows Media Player can do that).

If you decide to go with option one (renaming of the files) I suggest you use Rename Master ( It is a powerful application for renaming and allows you to rename files in batches. It also has some templates, etc. so it should be an acceptable effort for a one time rename.
nobusAuthor Commented:
TheAvenger (British?) that looks like a good renaming utility -i'll look into it
waiting for more input
☠ MASQ ☠Commented:
nobus is this something you've programmed or is this something like the native Sharp "Record to USB" feature on their Micro systems?

How it's solved will depend on what conversion has already been used and if the files on the USB have been created from original CDs - if this is the Sharp system though it's going to be an uphill struggle to rename them automatically and even with a manual (or at least semi-automated) solution it will depend a lot on how you are intending to play these back and on which devices as hardware devices may not support metadata in file tags or have severe restrictions on file naming (such as 8.3 format only allowing valid alpha-numeric characters).

So need to know:

- What system is making the files on the USB?
- Have you introduced any programming to the conversion?
- Were the USB files created from original CDs?
- What are you intending to play the files back on?
The Ultimate Tool Kit for Technolgy Solution Provi

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy for valuable how-to assets including sample agreements, checklists, flowcharts, and more!

nobusAuthor Commented:
Masqueraid, i don't know -but i'll ask (it could very well be so), as far as i know, it was Micro  system, but i'm not sure about the brand
no programming, only selected songs for mp3 conversion
SD files created from original CD's
Car and home music CD player,
nobusAuthor Commented:
no one presents a batch file?

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
☠ MASQ ☠Commented:
Was waiting to hear if the source was a Sharp machine
nobusAuthor Commented:
i know, but he does  not remember, he gave the system to his daughter
☠ MASQ ☠Commented:
Then you're going to be pretty much out of luck, without the source you're going to have to identify the files individually as there are no markers to help, either play them to a mobile decive like Shazaam or through a PC app like Tunatic, either way you then will need to manaully rename and/or tag each file.  With the source disks you could at least try using and online tagger and then it's a simple job to rename files based on the tagged metadata.

For anything more than a dozen files doing it by hand is a labor of love.  It would be far simpler to tell them it can't be done - unless you are going to show them how and leave them with it.  No programmatic solution though if we can't trace the original data.
nobusAuthor Commented:
i know that finding the names is difficult, i only asked for the different (or easiest) ways to do it
and i also asked  for a batch file that renames all the files from these folders into a different name, say music001 up to music999
For me the easiest is just highlight the lot
but for the initial purpose to get them on to your USB, ( which I do with my mp3 player)
You need to go into each folder because as yet you cant copy them out to the one USB drive
 folders are named :
CDREC001, ~>Disc1T01.mp3, << open highlight all mp3 rightclick name, now note that the entire name is highlighted, you dont want to change that, so put your curser at the front and add say for example A1 all of them will change to A1Disc1T01.mp3,
 CDREC002, Disc1T02.mp3~>, B1 all of them will change to B1Disc1T02.mp3,
CDREC003 .Disc1T03.mp3 ~>C3 all of them will change to C3Disc1T03

mp3 tag
Do you already know Ant Renamer???

Ant Renamer is a Lightweight but Powerful Renaming Utility

This fast and handy batch file renaming tool even contains special mp3 functionality. You can easily extract mp3 tag infos and use it to generate new mp3 file names. It's absolutely worth giving it a try...
Ant Renamer MP3 file tag info masking sample...
nobusAuthor Commented:
thanks ModeiT

i'll try ant renamer
Merete, what do you want me to to de with mp3tag?  rename also?

still no batch file suggestions ?? i thought that would be the easiest solution
Besides these main features Mp3tag offers a variety of other functions and features ranging ranging from batch export of embedded album covers, combining multiple actions into groups that can be applied with a single mouse click.
This may help it is the same principal as suggested above
If it helps
nobusAuthor Commented:
ah ok, i was not sure i understood correctly what you posted
For bulk renaming, I use a free utility:

It is a pretty nifty tool with many options such as wild card replaces characters and autonumbering. Has a GUI.

I have worked with this ID Tag finder a long time ago, before I had a good mp3 converter. This takes no name mp3s and extracts the tag, then compiles a filename based on the tag:

Bill PrewCommented:
Coming in a bit late here, but if you want a small BAT script that does the sequential numbering rename/copy, here that is.  Adjust the folder names near the top as needed and give a test.  Also, if you have more then 1000 MP3 files then we need to increase the width of the number field appropriately, let me know on that.

@echo off
@setlocal EnableDelayedExpansion

set BaseDir=c:\ee\ee28228047\music
set DestDir=c:\ee\ee28228047\flat

set Count=0

for /F "tokens=*" %%A in ('dir /a-d /b /s "%BaseDir%\*.mp3"') do (
  set /a Count+=1
  set Padded=00000!Count!
  set Padded=!Padded:~-3!
  copy /Y "%%~A" "%DestDir%\music!Padded!.mp3" > NUL

Open in new window

I just noticed your original question header there nobus
renaming music files for recording
If this is the case for recording to CD then using your Multimedia software, if you have Nero or Cyberlink, some others?
The tool where you drop your mp3 tracks on to will automatically list your titles with a number
Try using windows media player
Drop a blank CD in to your rom then it may ask you what you want burn with with what tool.
Select make an audio CD with windows media player

And then you said>
when i want to copy these into 1 folder (to put them on an USB stick, for listening in the car), i obviously get files with the same name
nobusAuthor Commented:
billprew - you're not too late, since none of the others answered that part of my question - thank you

Merete, i did not know that  "drop your mp3 tracks on to will automatically list your titles ", i assumed it would leave them as is

What do you want to know about the last part? it's obvious to me if i take the CDRec001 out of several folders and copy them into one - i get an error
"And then you said>
when i want to copy these into 1 folder (to put them on an USB stick, for listening in the car), i obviously get files with the same name "
but maybe i can better leave tehm as they are
Hi nobus

Here's my personal observation about MP3 file names for playing in a car.  Not looking for points because I'm not contributing anything other than my opinions.  I have a crappy old car, but if the other contributors would be willing to pass the hat around and buy me a new one, I could see if my opinions change with a fancy new in-car entertainment system ;-)

Filenames matching the artist and song title are only useful to you while driving a car if the screen is large enough and laid out clearly enough for you to glance down and see the details.  You will probably be familiar enough with your songs that you will know what song is playing after the first few seconds of the intro, in which case why do we really need a screen to show what song is playing?

I don't have a fancy CD player fitted to my old car, but it does the job well enough for me with MP3 CDs and, if I chose to, an MP3 player connected to it.  The screen area is small, and all I see is a scrolling tickertape display of the mp3 filename, so what I want to see very quickly when I hit the "next" button and glance down, is a very short name that tells me the next song within the first 5 characters, or else my eyes would be off the road for too long.

In fact, even though I have probably a few hundred MP3s on a CD currently in my car, it has played from beginning to end so many times that I often know what song is coming next before it starts.  If I had 10 albums worth of songs all grouped together by album and alphabetically named, I would probably be familiar enough with most of those albums to remember the play order of the songs.

I'm guessing that you will have a much more modern car than me, and it is likely to have one of those all-in-one large screened entertainment devices with Sat-Nav dominating the centre of the dashboard.  I'm pretty sure that they will be smart enough to read the MP3 tags and display the Album, Year, Artist, and Song Title on the screen regardless of how the MP3 file is named, and that the details will be quickly obtained with a very quick glance down.

If that is the case, then it makes sense to use an MP3 Tagging program that fetches all the tag details over the Internet to supplement or replace missing or wrong tags in the MP3s.

If the screen doesn't display the tags, but is large enough to display long file names containing the artist and song, then it would make sense to use one of those MP3 Tagging programs that uses the existing tags in the MP3s and renames them with the most useful file naming convention to your needs, for example "(Track)# - Artist - Title.mp3".  Remember that this isn't read-only storage like an Audio CD where the tracks can be rearranged to make compilations, this is a proper hard drive or flash memory that stores files in ascending alpha-numeric order by default.  That was the reason Bill Prew's batch file prefixed the files with 000001, 000002, .... 00998, 00999, so that the original order would be maintained.  So any automated file naming you choose if using an MP3 tagger to rename files, you would have to prefix all the file names with numbers like that to maintain the original sort order.

When I first saw the question I began writing a batch file that took the containing folder name and the file name and stuck them together while copying as a new file to another flat folder, eg.
My idea was that once they were all in one folder, and sorted just the way they would have been if you were to walk through all the folders from top to bottom, that it would then be easier to give them useful names with number prefixes.
I gave up because I had forgotten how to grab the last folder name from a full path, and didn't have the time then to keep trying.   Bill Prew is your batch file man.

So, only you will know how useful numeric file names vs song names will be for your MP3 player and in-car device, and there have been quite a few suggestions that should get you what you want.

As I said, this isn't anything intended to help you create new file names, but I know you are always interested in other peoples' feelings about issues.

Not to outshine Bill's contribution,
If your car has a supporting CD player  ( new modern type) that will play data discs or mp3 discs
If you so choose to do consider Burning a data CD,
this method keeps your folders and files as is, use a CD-R or CDRW-r
simply just drag each folder on as is and it will play them fine, no need to rename them or change anything.
Watch the amount of space used.
 with mp3 cd you can add a lot of files as it uses the yellow book process as opposed to the Red Book standard audio format (used for CD-DA audio CDs).
It acts like a USB drive but on a CD platter.
Because of audio data compression, an MP3 CD does not have to spin all of the time, potentially saving battery power, however, decompressing the audio takes more processor time.
The song is buffered in random-access memory, which also provides protection against skipping.

The number of songs that a disc can hold depends on how the songs are encoded and the length of the songs.
A standard audio CD (74 minutes) can hold about 18 songs,
a 650-MB data CD (equivalent to 74-minute audio CD) containing mid-quality (160-kb/s) audio files can hold approximately 9.5 hours of music or about 138 songs.
The reason I love them too.

ID3 tags stored in MP3 files can be displayed by some players, and some players can search for MP3 files within directories on an MP3 CD.
Meta data holds a key to the naming hierarchy of the mp3 file once your program/ music system, that is programmable to copy music files into MP3 folders, it may have included in the meta data the details of the file directory as well the artist name title  track name date
it may include Publisher/encoded by/
go to the properties of each mp3 in it's folder and look at the details
Now you have another option.
USB is awesome
USB stick has the same procedure copy the folders over as is, the advantage of the USB stick is space, buy a bigger USB disc space 20 gig or more if available
use a bluetooth mp3 player that you put in your cigarette lighter tune your FM station to the mp3 player
like these
I have one with a remote control as well
Actually I have a photo I can show you
remote control for my car stereo and one for the mp3 player.
It holds around 493 tracks , you can see in the display playing track number of 492
so far I have never been able to play it from start to finish
MP3 player in action
nobusAuthor Commented:
well it's not for my car (16 years old, and still playing cassetttes)but thank you all for your posts
i'm happy with your input, and tried not to forget one of you all
Thanks nobus
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
MultiMedia Applications

From novice to tech pro — start learning today.