How to create a simple batchscript in windows that will take the contents of one txt file and will append it to the end of another textfile
Asked
Active
Viewed 1.4k times
2 Answers
11
The type command can be used to concatenate files. Try
type file1.txt >> file2.txt

octopusgrabbus
- 10,555
- 15
- 68
- 131

Brett Walker
- 3,566
- 1
- 18
- 36
4
Brett's answer works well. Another alternative is
copy file1.txt + file2.txt /b
You can append any number of files with this syntax by adding additional files.
The /b
option prevents the <ctrl-Z>
end-of-file marker from being appended to the end of the file after the copy.

dbenham
- 127,446
- 28
- 251
- 390