I have created a variable of type array but both the variable name and indexes are variables, And I would like to read them as a loop FOR: This is the code snippet that I can't solve
set /p dato=dato:
set /a indice+=1
for %%a in (%dato%) do (set %campo[%indice%]%=%%a)
for %%b in (%campo[%?%]%) do echo %%b
I can't understand How to tell the command to search all elements of that array.