for /r "C:\tmp\DCIM" %x in (*.jpg) do move "%x" "C:\tmp\pic"