a6236130 当前离线
二级士官
@echo off set num=0 for /R %%i in (*-*.jpg) do set /A num+=1 echo %num% pause复制代码
评分人数
aloha20200628 当前离线
上尉
@echo off (for /f %%n in (' dir /b/a-d "*-*.jpg"^|find /v /c "" ') do if %%n neq 0 (echo,%cd% 文件夹:%%n 个) for /d /r %%d in (*) do for /f %%n in (' dir /b/a-d "%%d\*-*.jpg"^|find /v /c "" ') do if %%n neq 0 (echo,%%d 文件夹:%%n 个) )>"list.txt" 2>nul pause&exit/b复制代码
TOP
77七 当前在线
中校
@echo off rem 批处理保存为ansi编码格式 cd /d "%~dp0" (for /r /d %%d in (*) do ( for %%i in ("%%d\*-*.jpg") do ( set /a n+=1,m+=1 ) if defined n ( call echo %%~nxd:%%n%%个 set n= ) ))>"list.txt" echo %m% pause复制代码
ShowCode 当前离线
VIP1
@echo off set num=0 for /r %%i in (*-*.jpg) do set /a num+=1 >"list.txt" echo %num%复制代码