Path: utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!att!alberta!uqv-mts!ualtavm.bitnet!THALL From: THALL@UALTAVM.BITNET (Tom Hall) Newsgroups: comp.sys.ibm.pc Subject: Re: Help w/appending files Message-ID: <544@UALTAVM.BITNET> Date: 15 Jun 89 19:08:59 GMT References: <8906091823.AA06940@cunixa.cc.columbia.edu> <2061@iesd.dk> Reply-To: THALL@UALTAVM.BITNET Organization: University of Alberta VM/CMS Lines: 29 Disclaimer: Author bears full responsibility for contents of this article In article <2061@iesd.dk>, richard@iesd.dk (Richard Flamsholt S0rensen) writes: > >>Is there a way to force a file with a filename that already exists to >>append itself to the end of the previous file rather than overwrite the >>old one? I am writing a DBaseIV application that creates a report and > >I'm not quite sure how DBaseIV could handle this, but if your application >program supports access to DOS, one way of getting round is by writing >something like > >COPY OldFile.DBF + NewFile.DBF OldFile.DBF > >This simply adds your old file to the new extension and - voila ! A better way would be to use COPY /B FILE1+FILE2, etc., otherwise, if you are copying text files, you will get an imbedded Ctrl-Z (end-of-file marker). If the files you are copying are NOT ascii text files, then omitting the /b could get you into some trouble ;-) This, at least, is my experience with DOS 3.3. Earlier versions I think may have behaved differently. In fact, I ran across a patch for DOS 3.3's copy command that fixed some bug or other.. Tom ---------------------------------------------------------------------- Tom Hall FidoNet: 1:342/6 Edmonton, Alberta BitNet : THALL@UALTAVM.BITNET ----------------------------------------------------------------------