回复 6# 001011 - @echo off
- setlocal enabledelayedexpansion
- pushd "E:\图片"
- (for /r /d %%i in (*) do (
- pushd "%%i"
- set x=0
- for /f %%j in ('dir /b *.jpg 2^>nul') do (
- set /a x+=1
- )
- echo %%i 里面 jpg 有 !x! 个
- set y=0
- for /f %%j in ('dir /b *.pdf 2^>nul') do (
- set /a y+=1
- )
- echo %%i 里面 pdf 有 !y! 个
- popd
- ))>统计.txt
复制代码
|