Solved

Batch file to rename all my .wav files

Posted on 2003-12-10
9
692 Views
Last Modified: 2008-03-06
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.
0
Comment
Question by:kwaoc
9 Comments
 
LVL 5

Expert Comment

by:Goofytouy
ID: 9914146

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
 
LVL 67

Expert Comment

by:sirbounty
ID: 9914328
What are you trying to rename them to?
Are you trying to change just the filename, but leave the same extension?
0
 
LVL 62

Accepted Solution

by:
☠ MASQ ☠ earned 50 total points
ID: 9914576
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
 
LVL 62

Expert Comment

by:☠ MASQ ☠
ID: 9914583
whoops was thinking MP3 not WAV but most of the problems still apply.
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
LVL 4

Expert Comment

by:MobileOakAI
ID: 9917714
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
 
LVL 1

Author Comment

by:kwaoc
ID: 9919349
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
 
LVL 67

Expert Comment

by:sirbounty
ID: 9920165
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
 
LVL 5

Expert Comment

by:Hypoviax
ID: 9946774
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
 

Expert Comment

by:itprochris
ID: 10057592
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

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Table function 6 49
Keeping track of daily tasks 4 45
Looking to replace current projector currently using a 4:3 screen 2 32
mini spy rotating camera 3 53
Originally published Entrepreneur.com Booming numbers of freelancing professionals are changing the face of work. In the United States alone last year, the number of workers freelancing grew from 700,000 to 54 million, according to a Freelancers’…
CSS is a visual language used to classify objects and define rules about how they should be displayed. CSS skills aren’t restricted to developers anymore, there is a big benefit to having a basic understanding of the language, regardless of your occ…
The Bounty Board allows you to request an article or video on any technical topic, or fulfill a bounty request to earn points. Watch this video to learn how to use the Bounty Board to get the content you want, earn points, and browse submitted bount…
Articles on a wide range of technology and professional topics are available on Experts Exchange. These resources are written by members, for members, and can be written about any topic you feel passionate about. Learn how to best write an article t…

920 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now