15

How can i move all files of the same extension into another folder using cmd?

Nonso
  • 159

2 Answers2

20

To copy, can use the copy command with wildcards:

copy *.<extension> <other folder>

And if you to move your files instead: use the move the same way:

move *.<extension> <other folder>
m4573r
  • 5,701
7

Here is an example of moving all files of the jpg format from the C:\ to D:\pictures\ using cmd.

Simply replace jpg with whatever format you wish and then change the to and from locations and you're sorted.

for /r C:\ %f in (*.jpg) do @copy "%f" D:\pictures\