
CODE: [Copy to clipboard]@echo off
for /f "delims=:" %%a in ('findstr /n . test.txt') do set m=%%a
for /f "delims=:" %%a in ('findstr . test.txt^|findstr /n .') do set n=%%a
set /a emptyline=%m%-%n%
echo 空行数:%emptyline%
pause
CODE: [Copy to clipboard]findstr /v . test.txt|find /v /c ""
CODE: [Copy to clipboard]findstr /n /v . test.txt
| 欢迎光临 中国DOS联盟论坛 (http://cndos.fam.cx/forum/) | Powered by Discuz! 2.5 |