WinBatch® Technical Support Forum

All Things WinBatch => WinBatch => Topic started by: kle2 on February 06, 2025, 02:09:59 PM

Title: Merge two csv files together?
Post by: kle2 on February 06, 2025, 02:09:59 PM
Hello everyone,

Is there a function that I can use to merge two .csv file together?

file1.csv
******************
server1,17050,1/31/2025,D,VSP,P,fdsfa
server2,17298,1/31/2025,D,VSP,P,abc
server3,1345648,1/31/2025,D,VSP,P,dfcq
******************

File2.csv
******************
server5,0.00,31-Jan-25,B,COHESITY,,,
server6,885.05,31-Jan-25,B,COHESITY,,,
server7,844.75,31-Jan-25,B,COHESITY,,,
******************

After merge file should be:
*****************
server1,17050,1/31/2025,D,VSP,P,fdsfa
server2,17298,1/31/2025,D,VSP,P,abc
server3,1345648,1/31/2025,D,VSP,P,dfcq
server5,0.00,31-Jan-25,B,COHESITY,,,
server6,885.05,31-Jan-25,B,COHESITY,,,
server7,844.75,31-Jan-25,B,COHESITY,,,
*****************
Thank you in advance!
kle2
Title: Re: Merge two csv files together?
Post by: kle2 on February 06, 2025, 06:18:05 PM
Found this function works perfectly FileAppend("file1.csv","file2.csv")