13

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.

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.

36

With a for loop, with recursive switch:

for /R %x in (*.m4v) do ren "%x" *.avi

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