Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Possible Duplicate:
How can I mass rename files from the command line?

i have some folders of files i want to rename. the general structure of the file is

    /module 1
        /chapter 1
            /01 Intro.wmv
            /02 Topic.wmv
        /chapter 2
            /01 Intro.wmv
            /02 Topic.wmv
        /chapter 3
    /module 2
        /chapter 4
        /chapter 5
        /chapter 6

i want to batch rename files and move them to the /root directory with the specified format below

01 01 Intro.wmv
01 02 Topic.wmv
02 03 Intro.wmv
   ^ this is the chapter number
^ this is the module number

can i use a batch script to do this? i am on windows 7. or what tool can i use to achieve this?

share|improve this question

marked as duplicate by Sathya, Chealion, BinaryMisfit Sep 16 '10 at 18:34

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

up vote 1 down vote accepted

Batch File Rename Utility . Its free

alt text

For other renaming tools go here . Many of them are free

About Batch: I asked something similar in stack-overflow for you, it should work with little modification

share|improve this answer

It's certianly possible with a batch script. You could use XCOPY, along with some scripting to check for folder contents, and use the names of the parent directories to form the file numbers.

It could be a worthwhile project if you want to learn about CMD scripting. It would take me some time to come up with a script for you, so I won't, but I can answer any detailed questions that you may have, if you give it a go.

share|improve this answer
Possible? yes. Sensible? Depends. Renaming and moving manually would likely be quicker unless it's a LOT of files... – Torben Gundtofte-Bruun Sep 13 '10 at 12:44
@torbengb: I agree, but it would be a pretty good way to learn batch scripting, which is a valuable skill for such file system work. – paradroid Sep 13 '10 at 18:33

Not the answer you're looking for? Browse other questions tagged .