...

View Full Version : Using a Batch File To Mass Rename Files



Bry Man
09-13-2005, 08:15 PM
Hey

Sorry if the title was a bit confusing...ill try and explain better. I have a music library of about 8 gigs or more and the songs all contain (Album Version) in their name...Napster does that for some reason...and its kinda annoying, I was wondering if there was a fast way of renaming all the files to their origonal names without the (Album Version) part in the names using a batch file. I thought that this would work


rename *(Album Version).mp3 *.mp3

But it doesnt...is there a faster way of doing all the renaming or am I gonna have to do it all by hand =S

oracleguy
09-13-2005, 09:08 PM
You could do it using vbscript pretty easily. Or since these are MP3s, you might try using MusicBrainz to rename them, it lets you set the format on how it will rename them.

Antoniohawk
09-13-2005, 11:18 PM
I asked Kevin (oracleguy), this exact question and he hooked me up with some very nice vbscript. :) Bug him enough and he'll share.

oracleguy
09-14-2005, 12:05 AM
I think it be easier if you just posted what you did, I remember you asking but I don't know where I put the answer, lol.

Bry Man
09-14-2005, 01:38 AM
You could do it using vbscript pretty easily. Or since these are MP3s, you might try using MusicBrainz to rename them, it lets you set the format on how it will rename them.

*pokes oracleguy with stick* gimme gimme gimme gimme...haha, If not ill just go on google and try n find it..vbscript renaming files? what should I look for, it would seem that that would only provide individual file renaming :confused:

oracleguy
09-14-2005, 06:13 PM
Well I tried looking for the thread where it was discussed previously to no avail. I'll look tonight to see if I have the .vbs file, I'll try and find it if I can.

Tynan
09-15-2005, 11:05 AM
i think you'll find some sort of whizzy little util if you try

seem to remeber doing something jolly with something called 'magic file renamer, a few years back, it worked very well

Bry Man
09-15-2005, 06:50 PM
I ended up going with that MusicBrains thing, Its alright, not very effective as it didnt seem to recognize about 80% of the titles that had (album version) in em, perhaps ill keep trying and look for the one you mentioned.

Antoniohawk
09-16-2005, 12:54 AM
So all or some of the files contain the text "(Album Version)"? If that's the case you can use this vbscript and just edit it to traverse the folders, unless you don't have seperate folders. I seriously suggest copying some of the files and running it against them before possibly screwing up the names of the real ones.

Dim filesys, file, folderName, folderObj, fileColl, objRegEx, newFile

Set filesys = CreateObject("Scripting.FileSystemObject")

folderName = InputBox("", "Folder Name")

Set folderObj = filesys.GetFolder(folderName)

Set fileColl = folderObj.Files

Set objRegEx = New RegExp
objRegEx.Pattern = "(Album Version)" ' looking for this

For Each objFile In fileColl
newFile = objRegEx.Replace(objFile.Name, "") ' replacing with this
filesys.MoveFile objFile, folderName & "\" & newFile
Next

hyperbole
09-16-2005, 05:04 PM
I use RenameWizard (http://www.renamewiz.com/). It works really well for that kind of thing.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum