小木瓜小土豆 当前离线
列兵
评分人数
TOP
DAIC 当前离线
中将
@echo off setlocal enabledelayedexpansion (for %%a in (*.txt) do ( set n=0 for /f "delims=" %%b in ('type "%%a" ^| findstr "[0-9]" ^| find /v /c ""') do ( set n=%%b ) echo %%a --- !n! ))>"统计.log"复制代码
pcl_test 当前离线
荣誉版主
@echo off setlocal enabledelayedexpansion (for /f "delims=" %%a in ('dir /a-d /b *.txt') do ( set n=0 for /f "delims=" %%b in ('type "%%a"') do set /a n+=1 if "%%a" neq "统计.txt" echo,%%a --- !n! ))>"统计.txt"复制代码