How can you move/copy all files of a specific file extension to a directory in windows vista?
How can i move all files of the same extension into another folder using cmd
?
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>
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\