Hi,
I'm new to DOS and I've written a batch file that combines the contents of multiple csv files, creating a new file (without duplicate headers). However, what I'm struggling to work out is how to rename the new file according to the filename/s of the original csvs.
For example, I have two csv files called:
YYMMDD Type 1_Part 1
YYMMDD Type 1_Part 2
What my batch file creates is a new file called "Combined data". I then manually rename the new file (in the format YYMMDD, followed by the type of data the file contains). So, the final result is "YYMMDD Type 1".
I do this daily, but the dates and the type of data changes each time. So, essentially what I need to be able to do is to combine csvs which have the same date and 'Type' of data and produce a master csv named by the date of the file and the type of the data (without the '_Part x' on the end).
Any help would be much appreciated!
Thanks.