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:
Which command can I use to recursively rename or move a file in Windows?

Is there a way, through the command line, to recursively rename all .m4v files to .avi?

ren *.m4v *.avi only works for the folder(s) selected, and ignores the folders under them, and as best I can tell there is no recursive parameter with that function.

share|improve this question

marked as duplicate by RedGrittyBrick, JdeBP, slhck, Nifle, Mokubai Jan 7 '12 at 20:36

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.

    
Same question as this: superuser.com/questions/205083/… –  Sencer H. Jan 7 '12 at 10:43

1 Answer 1

up vote 8 down vote accepted

With a for loop, with recursive switch:

for /R %x in (*.m4v) do ren "%x" *.avi
share|improve this answer
    
Thanks, seems to work. –  David Gard Feb 29 '12 at 10:13

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