There's a lot of topics about variable inside variables in a Windows batch files in here, and I tried to understand them. So I end up with this code, but looks like it's in a infinite loop:
setlocal enabledelayedexpansion
for /l %%a in (RPR SAM) do (
for /l %%w in (000 iso pic) do (
set /a a!w!=H:\MyPath\!%%a\!%%a!%%w
)
)
The result should be the following variables:
RPR000=H:\MyPath\RPR\RPR000
RPRiso=H:\MyPath\RPR\RPRiso
RPRpic=H:\MyPath\RPR\RPRpic
SAM000=H:\MyPath\SAM\SAM000
SAMiso=H:\MyPath\SAM\SAMiso
SAMpic=H:\MyPath\SAM\SAMpic
What am I doing wrong, or, is it even possible?