Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 10 of 10
  1. #1
    Regular Coder
    Join Date
    Sep 2002
    Location
    California
    Posts
    511
    Thanks
    1
    Thanked 1 Time in 1 Post

    Using a Batch File To Mass Rename Files

    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
    When traveling down the road of life, Try not to drag your face in the gravel.

  • #2
    Rockstar Coder
    Join Date
    Jun 2002
    Location
    USA
    Posts
    9,074
    Thanks
    1
    Thanked 328 Times in 324 Posts
    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.
    OracleGuy

  • #3
    Senior Coder
    Join Date
    Aug 2002
    Location
    Kansas City, Kansas
    Posts
    1,518
    Thanks
    0
    Thanked 2 Times in 2 Posts
    I asked Kevin (oracleguy), this exact question and he hooked me up with some very nice vbscript. Bug him enough and he'll share.

  • #4
    Rockstar Coder
    Join Date
    Jun 2002
    Location
    USA
    Posts
    9,074
    Thanks
    1
    Thanked 328 Times in 324 Posts
    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.
    OracleGuy

  • #5
    Regular Coder
    Join Date
    Sep 2002
    Location
    California
    Posts
    511
    Thanks
    1
    Thanked 1 Time in 1 Post
    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
    When traveling down the road of life, Try not to drag your face in the gravel.

  • #6
    Rockstar Coder
    Join Date
    Jun 2002
    Location
    USA
    Posts
    9,074
    Thanks
    1
    Thanked 328 Times in 324 Posts
    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.
    OracleGuy

  • #7
    Regular Coder
    Join Date
    Oct 2004
    Location
    London E4 UK
    Posts
    320
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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

  • #8
    Regular Coder
    Join Date
    Sep 2002
    Location
    California
    Posts
    511
    Thanks
    1
    Thanked 1 Time in 1 Post
    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.
    When traveling down the road of life, Try not to drag your face in the gravel.

  • #9
    Senior Coder
    Join Date
    Aug 2002
    Location
    Kansas City, Kansas
    Posts
    1,518
    Thanks
    0
    Thanked 2 Times in 2 Posts
    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.
    Code:
    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

  • #10
    Regular Coder
    Join Date
    Sep 2005
    Location
    Madison, Indiana, USA
    Posts
    166
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I use RenameWizard. It works really well for that kind of thing.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •