Thanks for pointing me that, totally forgot that detail.
Everything works fine now.
Thanks abc0502 for you help

Code: Select all
timeout (number of seconds)
Code: Select all
findstr /R /N "^" %file% | find /C ":">lines
< lines set /p "num="
del lines