Windows batch - concatenate multiple text files into one
问题 I need to create a script, which concatenates multiple text files into one. I know its simple to use type *.txt > merged.txt But the requirement is "concatenate files from same day into file day_YYYY-DD-MM.txt" I am linux user and windows batch is hell for me. EDIT: Its Windows XP 回答1: Windows type command works similarly to UNIX cat . Example 1: Merge with file names (This will merge file1.csv & file2.csv to create concat.csv) type file1.csv file2.csv > concat.csv Example 2: Merge files with