Window copies files with suffix .jpg in all subfolders to the specified directory

@echo off
echo "start copy"
for /f "tokens=*" %%i in ('dir/s/b/a-d 复制目录*.jpg') do copy "%%i" 目的目录 /y
echo "end copy"
pause

If you write a lot of files in this way, there will be some that are not copied. If you see the trouble of knowing how to change it, please comment.

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325327611&siteId=291194637