Quantcast
Viewing all articles
Browse latest Browse all 1741

Max number of tokens in FOR /f ?

I am using this token-based FOR subroutine
for /f "tokens=1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26 delims=;" %a in (@00TMP.txt) DO GOSUB SUBEXTRACT3
.
.
:SUBEXTRACT3

if "%a%" == "" RETURN
if %@LEN[%a%] LT 4 GOTO BBB
.
.
if "%b%" == "" RETURN
if %@LEN[%b%] LT 4 GOTO CCC
.
.

RETURN

It works well, but only if 00TMP.txt has no more than 26 lines. In this context, what variable names does FOR assign to tokens...

Read more

Viewing all articles
Browse latest Browse all 1741

Trending Articles