@echo off
rem 制作:第三象限04
rem 2015年11月3日
set tempfile=%temp%\tempfile.txt
set fextion=txt
if exist %tempfile% 1 0>%tempfile% 2>nul
for %%i in (*.%fextion%) do @(
set /p=%%i <nul
type %%i|find /v "" /c
)>>%tempfile%
echo %cd%目录下所有.%fextion%信息已全部存入文%tempfile%
echo 是否查看
choice
if "%errorlevel%"=="2" pause&exit /b 0
type %tempfile%
pause
满意请采纳!