CODE: [Copy to clipboard]@echo off set str= for /f "skip=5 delims=" %%a in (a.txt) do ( call set str=%%str%%%%a ) echo.%str%