set aux= for /f %%i IN (cliente1.txt) do set aux=%aux% & %%i & o & " " echo %aux% >> cliente_resu1.txt