Is it possible to expand a nested variable without delayed expansion?
Example:
for /L %%i in (0,1,5) do ( echo.%somevar[%%i]% )
Here a more detailed example of what I'm trying to do (I cant paste my whole code here)
::%1 list of keys
::%2 output variable
SETLOCAL ENABLEDELAYEDEXPANSION
::parse some files and process information. Then it is stored into somevar
ENDLOCAL & (
for /L %%i in (0,1,%somevar.count%) do (
set "%2[%somevar[%%i].key%]=%somevar[%%i].value%"
)
)