I am trying to create a bat file to copy the contents of one file and append it to the end of another file.
Say I have a file named test.txt and I want to append the contents of test.txt to a file that is already created with the name of results.txt
How can this be done?
You can do type test.txt >> results.txt
Also see this reference at ss64.com for redirection.
Note that TYPE
will convert Unicode files to ANSI. If you need to keep files as they are, download the UnxUtils and use cat
instead of type
.