快速查询文件夹内,包含子文件夹内的JPG格式文件的数量(JPG格式最好可以根据需求自定义)
set /a num=0 cd /d "%~dp0" for /r %%i in (*.jpg) do set /a num=num+1 echo %num% pause