How can i move all files of the same extension into another folder using cmd?
2 Answers
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> 5Here 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\ 2