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
I usually use something more like this for /f %%a in (%_file%) do (set /a Lines+=1)
for /f %%a in (%_file%) do (set /a Lines+=1)