Windows batch - concatenate multiple text files into one

前端 未结 9 599
醉梦人生
醉梦人生 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条回答
  •  猫巷女王i
    2021-01-31 14:48

    In Win 7, navigate to the directory where your text files are. On the command prompt use:

    copy *.txt combined.txt
    

    Where combined.txt is the name of the newly created text file.

提交回复
热议问题