@echo off&setlocal EnableDelayedExpansionfor /f "delims=" %%a in ('type "abc.txt"') do (>>new$ echo %%~aset /a n+=1if !n! equ 2 echo,>>new$&set n=0)move new$ "abc.txt">nulpause