[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 705
  • Last Modified:

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.
0
kwaoc
Asked:
kwaoc
1 Solution
 
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
Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
☠ 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

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now