@echo off
setlocal enabledelayedexpansion
set list=1 2 3 4
for %%a in (%list%) do echo %%a
set a[0]=1
echo %a[0]%
set topic[0]=comments
set topic[1]=variables
set topic[2]=Arrays
set topic[3]=Decision making
set topic[4]=Time and date
set topic[5]=Operators
echo %topic[0]%
for /l %%n in (0,1,5) do @echo !topic[%%n]!
pause