windowsbatch-filescripting

Windows batch - concatenate multiple text files into one


I need to create a script, which concatenates multiple text files into one. I know it's simple to use

type *.txt > merged.txt

But the requirement is to "concatenate files from same day into file day_YYYY-DD-MM.txt" I am a Linux user and Windows batch is hell for me. It's Windows XP.


Solution

  • Windows type command works similarly to UNIX' cat.