bat遍历指定文件夹的文件名时间:2023-01-25 12:30:05 @echo off for /f "delims=\" %%a in ('dir /b /a-d /o-d "%cd%\img\*jpg*"') do ( echo %%a ) %cd%是当前目录