I know how to count the number of lines using console: FIND /C /I "<TD" example.html
However how do i make a if statement so if the lines are above 100 then it executes a command, but if not simply exits?Any help is appreciated.
Thanks,
If you mean in a batch file, it would be something like: @echo off
set count=0
for /f "tokens=*" %%a in (example.html) do (
set /a count=%count% + 1
if %count% -lt 100 goto under100
'execute command'
:under100
exit
Yes (14) | ![]() | |
No (14) | ![]() | |
I don't know (15) | ![]() |