My ultimate goal is to take a string like "a.b;c.d;e.f.g" and perform an operation on each token delimited by ';', which includes a for loop that separately processes each subtoken delimited by '.'
I have split the origin input like so:
FOR %%i IN (%input%) DO (
ECHO %%i
)
This seems to work but now I can't use the :.=; syntax to get %%i ready to be split again. I have tried SET iVar=%%i to then be able to use this syntax but the SET doesn't work, iVar remains empty. I do have EnableDelayedExpansion set.
To clarify, if loop variables were just normal variables in batch my final script would be something like this:
FOR %i% IN (%input%) DO (
ECHO %i%
FOR %j% in (!i:.=;!) DO (
ECHO %j%
)
)
and the output would be
a.b
a
b
c.d
c
d
e.f.g
e
f
g