@echo off for /f "delims=" %%a in ('type "file.csv"') do ( >>"fileout.csv" echo.%%a,816 )