I would like to ask you if you can advise.
I don't know if it is possible to create dynamic variable names in batch or array or something like this. For example set c=0 before for loop and then set c = c+1 inside for loop and use this number to create dynamic variable name inside for loop e.g.: set entry%c% = 'somestring'
and afterwards use these numbered variables to print output outside for loop e.g.: echo %entry1% echo %entry2%
Example:
@echo off
set /a c=1
for %%i in (list.txt) do (
set /a c=c+1
set entry%c% = %%i
)
echo %entry1%
echo %entry2%
Thanks for help.