You need to show us a little more of your batch.
In all probability, you are following the DO
with a block.
A statement-sequence, counting as a single statement may be (parenthesised over many lines if you like)
but if used on an IF
statement, the IF
and (
must be on the same physical line (similarly, in a FOR..DO
, if a block is used, the DO
and (
must be on the same physical line).
If however you are using real, genuine MSDOS rather than CMD (the windows emulator) then for /f
is not supported under MSDOS