0

So I was looking into ways to do this like this post

How do I remove the same part of a file name for many files in Windows 7?

Because I wanted to change all the song files on my phone into mp3s. I used this program to do that to the 400 something songs. I wanted to remove some...

http://www.bulkrenameutility.co.uk/Main_Intro.php

I accidentally changed the file extension to ".mp3" and not "mp3" so now all my files are called "(insertsongtitle)..mp3" and not "(insertsongtitle).mp3". How could I remove this preferably with a batch file?

  • 1
    Why don't you use BRU itself to do that? It's a powerful mass renaming utility that can easily do what you want. – Karan May 30 '15 at 19:14
  • or perl like so : perl -npe s/..\/./g /somepathtofiles/songs.mp3 – linuxdev2013 May 30 '15 at 19:44
  • A person who knows how to use Perl wouldn't ask a question like this one. – Karan May 30 '15 at 21:40
  • Sorry I am not very knowledgeable at this stuff... – Grant Fisher May 30 '15 at 23:19
  • Simply use BRU. Replace (Repl in the app) a single dot/period with nothing/blank/empty string. When you select the files you'll be able to see the Preview in the New Name column so you can be sure of getting the result you want before pressing Rename. – Karan May 31 '15 at 6:32
0

From the directory with your files, go into Powershell at the command prompt (type powershell) and try something like this:

dir | Rename-Item -newname { $_.name -replace "..mp3", ".mp3" }

Source: http://www.howtogeek.com/111859/how-to-batch-rename-files-in-windows-4-ways-to-rename-multiple-files/

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.