A More Robust Line Counter

Posted On Thu, 23 May 2013

Filed under Batch
Tags: , , , , ,

Comments Dropped 2 responses

In a previous post, I talked about how to count the number of lines in a text file. I explained the technique of piping the output from type file.txt into find /c /v "" and wrapping the whole thing inside a for /f loop to store the result in a variable. A simple and effective solution to a common Batch programming task. 🙂

Too bad it doesn’t work…

continue reading »

Advertisements