dos rename in bulk

Posted on 2008-11-06
Last Modified: 2012-05-05

I have a bunch of mp3 files that I want to rename.
01 - Gypsy Soul - Superstition Highway - Who_.mp3

I want to rename this

Gypsy Soul - Superstition Highway - Who_.mp3
Question by:webquests
    LVL 4

    Expert Comment

    I've used a product call "Namewiz".  It works well.
    LVL 95

    Accepted Solution

    Create a copy of a few and test them with this:

    FOR /f "tokens=1,2,3,4 delims=-" %a in ('dir /b *.mp3') do ren "%a-%b-%c-%d" "%b-%c-%d"

    (run this single command on the command line from the directory where the mp3 files are located).
    LVL 5

    Expert Comment

    If you decide to run this in a script, change all the %variables to %%variable. So %a would become %%a.

    Also, all the files have to be named the same for this script to work

    LVL 5

    Expert Comment

    I had just finished my script leew but you beat me to the punch :(

    Author Closing Comment


    Featured Post

    Better Security Awareness With Threat Intelligence

    See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

    Join & Write a Comment

    VALIDATING DATES One method of validating dates is to jam the date into the DATE command and see if it accepts it by examining the system's errorlevel value. A non-zero result indicates failure. A typical example might look something like the fol…
    Introduction: Recently, I got a requirement to zip all files individually with batch file script in Windows OS. I don't know much about scripting, but I searched Google and found a lot of examples and websites to complete my task. Finally, I was ab…
    Internet Business Fax to Email Made Easy - With eFax Corporate (, you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
    In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor ( If you're interested in additional methods for monitoring bandwidt…

    746 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