set "variable=a"set "variable=%variable:a=b%"set "variable=%variable:b=c%"set "variable=%variable:c=d%"
type archivo.txt | debug
for /f "tokens=*" %%1 in (archivo.txt) do (echo.%%^1|debug)
for /f "tokens=*" %%%% in ('mediainfo "%%a" "--Inform=General;%%BitRate%%"') do set "rate=%%~%%" echo.%rate%