ForLines

Table of contents

  1. get @forlines
  2. related extensions

get @forlines

Return the total number of lines processed in the previous FOR /F.

set "file=!$0;~dp!LICENSE.txt"
for /f "usebackq" %%a in ("!file!") do rem
echo TOTAL lines:!@forlines!

@forline