Batch CSV Copy without Headers

Microsoft Microsoft windows xp home edit...
April 21, 2010 at 17:13:30
Specs: Windows XP
I would like to copy a CSV file over minus the headers to a created CSV with defined Headers using a Batch program.


Original CSV:
Headers: A,B,C,D
Data: 1,2,3,4

Copied/Created CSV:
Defined Headers: A,B,C,D,E
Data: 1,2,3,4


See More: Batch CSV Copy without Headers

April 21, 2010 at 18:20:57
@echo off & setLocal EnableDELAYedeXpansion

> newfile echo.Defined Headers: A,B,C,D,E

for /f "skip=1 tokens=* delims= " %%a in (myfile) do (
>> newfile echo.%%a

Helping others achieve escape felicity


Report •

April 23, 2010 at 15:49:04
Thanks M2!!

Report •
Related Solutions

Ask Question