@echo offset a=d:\A目录set b=e:\B目录pushd %a%for %%i in (txt jpg doc docx xls xlsx) do (echo n|copy *.%%i %b% /-y)