I'm learning batch script in tutorialspoint now, here's a very simple script:
@echo off
set a[0]=0
set a[1]=1
set a[2]=2
set a[3]=3
set a[4]=4
set a[5]=5
for /l %%n in (0,1,5) do (echo %a[%%n]%)
why result is "ECHO is off"
if I write like for /l %%n in (0,1,5) do (echo a[%%n])
I can get
a[0]
a[1]
a[2]
a[3]
a[4]
a[5]
so why cannot I use echo to get the value of array?