CODE: [Copy to clipboard]@echo off for /f "tokens=1-2 delims= " %%i in (a.txt) do ( set /a var=%%j%%3 echo %%i %var% >>a1.txt )