Windows Batch script snippets

How to merge all CSV files of a folder

You just have to copy the following code and past into Notepad, then save with .cmd extension and execute it.

Please execute the BAT file from the file that contains the CSV files.

@echo off
copy *.csv Union.csv
Nicola Simboli

Nicola Simboli Senior Analytics Engineer

15+ years across SaaS, enterprise and consulting. Focused on scalable data platforms, metric reliability and analytics systems that teams actually use.

Back to Windows Batch script cookbook page