How do I set up a variable that stores the results of this command:
findstr /R /N "^" c:\folder\file.txt | find /C ":"
The command counts the number of lines in a text file.
The goal is to check the number of lines in the text file and if more than 2 lines then continue processing but if less than 2 lines than do nothing.
Thanks for looking! Anything will help. I'm completely okay if it doesn't work this way but any suggestion or input would be very much appreciated.