:: 非空行数 findstr /n . FILENAME | find /c /v "" :: 总行数(包括空行) type FILENAME | find /c /v "" 转载于:https://www.cnblogs.com/goooogs/p/4913793.html