APPEND

APPEND {switches} <outfile>=<infile1>,<infile2>{,…}

APPEND creates a file consisting of two or more input files concatenated together.

Switch

Meaning

/I

Causes nonexistent input files to be ignored. (Otherwise a missing file would cause the operation to abort.)

/Z

Strips EOF (^Z) characters from the source files. DOS files, or files transferred to DOS/Windows with some file transfer software, sometimes end with a ^Z used as an end-of-file marker, which can cause all kinds of havoc in programs not prepared to filter these out.

/?, /H

Writes switch listing and usage info to the screen.

 

Notes

If the outfile already exists, it will be overwritten. You may specify the same file as both the outfile and one of the infiles.

APPEND handles long native filenames containing spaces. For example, the following is legal:

.APPEND TEST.LST=TEST.LST,"%TEMP%\THIS IS A LONG FILE.LST"

APPEND supports the case where the destination and one of the source files is the same file, and neither exists, provided the /I{gnore} switch is specified, e.g.:

.APPEND /I A.A=A.A,B.B

In older versions of A-Shell, this would have aborted with an error if A.A didn't exist. Now, the above command is logically equivalent to COPY A.A=B.B