Search code examples
batch-filedos

Merge multiple csv files using batch file


Is it possible to merge multiple CSV files [same directory] into one using a batch file? If so, how can I do this?

I think that would apply to any ASCII file?


Solution

  • copy *.csv merged.csv
    

    or

    copy file1+file2+… merged.csv
    

    for a more sophisticated script that avoids duplicate headers, see Batch Combine CSV Remove Header