Windows batch - concatenate multiple text files into one

前端 未结 9 598
醉梦人生
醉梦人生 2021-01-31 13:53

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 require

9条回答
  •  暖寄归人
    2021-01-31 14:54

    At its most basic, concatenating files from a batch file is done with 'copy'.

    copy file1.txt + file2.txt + file3.txt concattedfile.txt
    

提交回复
热议问题