Batch file to rename all my .wav files

hi there,
i have a lot of wav files in my directory.how can i read the contents of the directory filled with WAV files and rename them according to the "title" of the wav file held in the header. Any files with the same title will need to be renamed .a .b etc or some other way so as to avoid any overwriting. I have been trying to do it with batch files, but to be honest i am new to programming and havent really got a clue...
i did one before and it listed the entire contents of a folder, so maybe it would be something like that?
Thanking you in advance for your help,
Kevin.
LVL 1
kwaocAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
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.

GoofytouyCommented:

Hi kwaoc!

Explain me something: You have 2 files with the same name and extension on a single dir? How do you do that?
I know is possible in some OS (like Open VMS for instance), but even those OS make a version number as part of the name.

Could you be a little more clear?


GoofytoUy
0
sirbountyCommented:
What are you trying to rename them to?
Are you trying to change just the filename, but leave the same extension?
0
☠ MASQ ☠Commented:
If you are using the MP3 tag to rename the file you need to know there are a variety of standards used in tagging files & unless you know that all the files use the same format you won't get the result you want.  In any event without looking at the batch file you are going to have to open the file in a text or hex editor or an MP3 tagger read the data, associate it with the current file name, close the file viewer you are using then recall the actual file name, the associated "header" name from the tag and then execute the rename.  This is going to be far from straightforward!  What will you do for example if the info in the file header is actually wrong or absent?

M :o)
0

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
Introduction to R

R is considered the predominant language for data scientist and statisticians. Learn how to use R for your own data science projects.

☠ MASQ ☠Commented:
whoops was thinking MP3 not WAV but most of the problems still apply.
0
MobileOakAICommented:
To handle the collection an naming problem, try something simpler to remember.
copy  *.wav   \backup

I make directories for collections, easy to drag and drop from one to another.  Changing a name may not mean you won't later be getting file same as either name.

Be convenient to yourself. Maybe name the directory "...\December03\ " to maintain consistent chronology. Or maybe name it by type of sound.  Easier later on to make intelligent backups of the directories, instead of backing up files themselves.
0
kwaocAuthor Commented:
Hi folks,
When i right click on a wav file and select properties and then the summary tab, i get more optional info. in the part that says title, the song will be called one thing, but the title section may have something else. i want the batch file to look at the title part and if any of them are the same then to name the title of the same ones as title a, b, c etc...
any help would be great,
thanks in advance,
Kevin.
0
sirbountyCommented:
See MASQUERAID's comments.  They apply here with the WAV files you're asking about.  This cannot be done via a dos batch file. . .
0
HypoviaxCommented:
I would not use a batch file for this. It is in fact probably more complex than actually doing it using a programming language.

Regards,

Hypoviax
0
itprochrisCommented:
If you are running Windows XP you can highlight all of the WAV files and rename only the first one. You should call it something like NAME 001. Then, all of the other files highlighted will become NAME 002, NAME 003, etc.
0
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
Miscellaneous

From novice to tech pro — start learning today.