ForLine

Table of contents

  1. get @forline
  2. related extensions

get @forline

In FOR /F return the current line number (including omitted lines, like empty lines or with no tokens) in a FOR /F loop;

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

@forlines