Windows batch - concatenate multiple text files into one

前端 未结 9 597
醉梦人生
醉梦人生 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:39

    You can do it using type:

    type"C:\\*.txt"> merged.txt
    

    all the files in the directory will be appendeded to the file merged.txt.

提交回复
热议问题