@echo off for /R %%i in (*.jpg, *.png, *.gif, *.bmp) do ( move "%%i" . ) 1、新建记事本粘贴上诉代码 2、重命名为xxx.bat文件双击运行