2
I have a folder that has 148 folders contained in it, and in each of these folders they have a file .jpg
. I need to get all these .jpg
and put into a single folder
I can do that in the Linux thus
`#!/bin/bash
for arquivo in `find Origem -name *.jpg`;
do mv "$arquivo" Destino;
done;
but I can’t reproduce that in Windows. Only the command find
that I can reproduce the same result: dir /S /B *.jpg
Could do by the same explorer. Search *.jpg in the upper left corner, it will show all of that folder "inside". Then you give a control X (or control C) and glue the destination.
– Bacco
but I need to do it automatically but found a solution for /r %d in (*.jpg) from copy /Y "%d" "C: Users IRINEU Desktop a b"
– F333