Batch Script - Count lines in text file including blank lines


By: Wahine
September 4, 2011


:: Syntax:  %1 = [path\]input filename.ext

if [%1] equ [] echo Input filename not entered - restart.&&exit /b

for /f %%1 in ('find /c /v "" ^< "%1"') do set linecount=%%1




Need more help?
Describe your Problem
Example: Hard Drive Not Detected on My PC

Ask Question