It looks like a "ini file"... Look at "How to use ini files in batch files"
In my opinion, using a ini file you gotcha what you want to do!
That´s it! Have a fun with ini files!!!



Code: Select all
@echo off
cls
setlocal enabledelayedexpansion
set linha=1
for /f "tokens=*" %%a in (text.txt) do (
echo line!linha!=%%a
set /a linha+=1
)
endlocal
pause
goto:eof