@echo offfor /f "delims=" %%a in ('dir /ad /b /s') do (if exist "%%~fsa\1.jpg" copy "%%~fsa\1.jpg" "%%~nxa.jpg")
放在总文件夹中运行