Count Number Of Lines In A File Using DOS Batch File Command 9 February 2025 Every once in a while I get on a computer and I need to count the number of lines in a file. My first instinct is to open my text editor (editplus) and hit ctrl+end to get to the bottom of the document.