I have some .csv files in my folder with names like 1filename.csv, 2filename.csv, 3filename.csv then 1abc.csv, 2abc.csv and so on.
I need to merge files with same post name and each file has same no. of columns with same heading.So final file should have only one row with titles for columns and appended with data.
Example: 1. 1filename.csv, 2filename.csv, 3filename.csv should be merged to filename.csv (where the data is appended one after the other)
2.1abc.csv, 2abc.csv will be merged and to form abc.csv
Can I achieve this in batch file or with the help of phpexcel? I want to do in batch file but i am not sure that it is possible.
Thanks
These are the files which needs to be merged I will have 1000s of files splitted with different domains :

This is how csv files will look like, one file can have maximum of 800 rows and same number of columns with same heading:

Iin cmd you can use:
copy /b 1filename.csv+2filename.csv filename.csv
copy /b 1abc.csv+2abc.csv abc.csv