Hi – I am trying to build a nested Loops with 3 Categories of Variables. The nested loop is working fine if I am taking “normal” variables but what I want to do is combining all the variables. It should run through all the Markets-Variables and then Find and Replace some Text which is also related to the market. The problem is to concatenate the variables in the for loop – need some help there please!
Thanks a lot!
:: set market array variables
SET MARKET[1]=DE
:: 14 more variables ...
:: set find text array variables
SET %MARKET[1]%FTEXT[1]=_1_
:: 29 more variables ...
:: set replace text array variables
SET %MARKET[1]%RTEXT[1]=_2_
:: 29 more variables ...
FOR /L %%M IN (1,1,15) DO (
ECHO ==================
ECHO Renaming market !MARKET[%%M]!
ECHO ==================
FOR /L %%T IN (1,1,30) DO (
ECHO Renaming text from !MARKET[%%M]!!FTEXT[%%T]! to !MARKET[%%M]!!RTEXT[%%T]!
:: ACTION FOR RENAMING
PAUSE
)
)