Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!

Max number of tokens in FOR /f ?

Jan
9
0
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 beyond z?

Thanks!

Charlie
 
Back
Top