I want to count the no of lines in a text file and then the value has to be stored into a environment variable. The command to count the no of lines is
findstr /R
One nice surprise is for one who has git bash on his windows: just plain old linux wc -l will works for you there
git bash
-l