@echo off
set @=Q&set/an=0x53b7e0b4
title +%@%%@% %n%
set "文件夹1=D:\test\B"
set "文件夹2=D:\test\A"
for /f "delims=" %%a in ('dir /ad /b "%文件夹1%"') do (
for /f "delims=" %%b in ('dir /ad /b "%文件夹2%\*%%a"') do (
copy "%文件夹1%\%%a\*.jpg" "%文件夹2%\%%b\"
)
)
pause