批处理迭代目录

for /f %%i in ('dir /b /a "dir*.png"') do (
	echo %%i			
)

原文地址:https://www.cnblogs.com/iapp/p/3631678.html