Is there any way to set dyanamically index of array in batch script. please check my script bellow.
@echo off
SET /A i = 0
echo %i%
set fileList[%i%]="1.txt"
Set /A i+=1
echo %i%
set fileList[%i%]="2.txt"
Set /A i+=1
echo %i%
set fileList[%i%]="3.txt"