I want to have:
a=id
b=name
c=age
here is the batch windows file I wrote:
setlocal enabledelayedexpansion
set MY_LIST[0]=id
set MY_LIST[1]=name
set MY_LIST[2]=age
set /A COUNTER=0
FOR %%A IN (A B C) DO (
ECHO %%A=%MY_LIST[!COUNTER!]%
set /A COUNTER+=1
)
endlocal
why this is not working?