Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

/root
    /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
add comment

marked as duplicate by Sathya, Chealion, Diago 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.

2 Answers

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
add comment

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
add comment

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