日期:2014-05-17 浏览次数:20835 次
@ECHO OFF SETLOCAL ENABLEDELAYEDEXPANSION SET lines=0 IF "%1" == "" ECHO No Input File! & EXIT /B FOR /F "tokens=* delims=" %%i IN (%1) DO ( SET /A lines=!lines!+1 ) ECHO 当前文件共 !lines! 行!