• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

WAD Copy/append adds a character


Scott Mintz
May 20, 2008
Solon, OH, USA
I was trying to use COPY to append data to a file.
copy foo.txt + foo1.txt foo.txt

C:\Program Files\LunaSA\foo\foo1.txt =>>! C:\Program Files\LunaSA\foo\foo.txt
     1 file copied
The foo.txt was a 0 byte file and foo1.txt contained 63 bytes. After the copy, foo.txt contained 64 bytes. There was a 0x1A byte appended at the end of the file.

If I use this code to append, it works correctly:
type foo1.txt >> foo.txt
Top Bottom