@echo off
set /a cout=1
(for /f %%i in (a.txt) do (
call:RR %%i
set /a cout+=1
))>b.txt
pause&EXIT
:RR
echo,SE%1=%1,SYSTEM,NA,BOOK1.XLS!R%cout%C2,BOOK1.XLS!R%cout%C3,BOOK1.XLS!R%cout%C4,BOOK1.XLS!R%cout%C5,BOOK1.XLS!R%cout%C6,BOOK1.XLS!R%cout%C7,0900,1330,1
goto:eof