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:
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:… – Sencer H. Jan 7 '12 at 10:43
up vote 23 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 .