Insert a headder row into csv through batch

Microsoft Windows xp professional w/serv...
September 10, 2010 at 04:24:44
Specs: Windows XP, 512
i have a csv file with following output

iexplorer.exe 3620 TCP 7059 192.168.1.2 192.168.1.10
svhost.exe 3562 UDP 1526 159.62.2.5 55.12.26.21

I WAT TO CHANGE THE OUTPUT TO


PROCESSNAME PROCID PROTOCOL PORT LOCALIP REMOTEIP
iexplorer.exe 3620 TCP 7059 192.168.1.2 192.168.1.10
svhost.exe 3562 UDP 1526 159.62.2.5 55.12.26.21

How can i do the above through batch script.... i.e i want to insert heading to the following fields..
any suggestions in this regard is greatly appreciated..
thanks in advance



See More: Insert a headder row into csv through batch

Report •


#1
September 10, 2010 at 05:13:24
@echo off & setLocal EnableDELAYedeXpansion

> new.csv echo.PROCESSNAME PROCID PROTOCOL PORT LOCALIP REMOTEIP
>> new.csv type my.csv


=====================================
Helping others achieve escape felicity

M2


Report •

#2
September 13, 2010 at 02:11:21
thank u very much....... it runs successfully!!!!!!!!!!!!!!!

Report •

Related Solutions


Ask Question