CMD/Batch extract each text file line and loop from variable
===

Sorry i cant post code in normaly tag

>  @Echo Off SetLocal EnableDelayedExpansion SET mydir=D:\ SET
> DirCount=2 SET T=
>      For /F %%i In (qqq.txt) Do (  -  take first row from file set fg=%%i FOR /L %%G IN (2, 1, %DirCount%) DO (call :subroutine "%%i") -
> loop from 1 to 2 )
>      :subs
>       :subroutine Set T=!T!../ start /wait %mydir%program.exe %T%%fg% echo %t%%fg%  >>%cd%see.log

qqq.txt has rows

    1
    2
    3


In result i get:

    ../1
    ../../2
    ../../../3
    ../../../../3

But I need like this:

    ../1
    ../../1
    ../2
    ../../2
    ../3
    ../../3


Please Help what I'm doing wrong?