Chapter 6 / Command Reference
COPY/APPEND
Internal
, I
!-J
COpy
target pathname + source
pathnamel
[+
source pathname2
..
, ] [I
A]
[lB]
[IV]
Adds one or more files to the end of another existing file. The
files
are
added
in
the
order
in
which you
list
them. When you
append files,
the
original source files still exist separately. The
information from them is copied, not moved.
Parameters
target pathname is
the
file to receive
the
appendages named
in
the
source pathnames.
source pathname is
the
file(s)
that
will be added or appended to
target pathname.
IA
tells MS-DOS to
treat
the file as
an
ASCII file when used
with
the
source file. MS-DOS copies only the information up to
the
first EOF character.
IA
when used
with
the
target
file, tells MS-DOS to add
an
EOF
character to
the
end of
the
file.
IB tells MS-DOS to
treat
the
file as a
binary
file, such as a pro-
gram
file when used
with
the
source file. Therefore, MS-DOS
copies
the
entire file. When used
with
the
target
file
this
param-
eter
tells MS-DOS not to add
an
EOF character to the end of
the
file.
Each of these switches
(fA and IB) affects
the
file immediately
preceding
it
in
the
command line and all files following,
until
another IA or IE is encountered.
For example,
if
you type this:
copy
oneflle.txt
la
+
myfile.txt
+
samfile.txt
I
ENTER
I
the
IA
parameter
affects all
three
files. However,
if
you type
this:
copy
onefile.txt
la
+
myfile.txt
Ib
+
5
am
f
lIe
.
txt
I
ENTER
I
the
IA
parameter
affects only
the
target
file, Onefile.txt.
56
! )
, ,
'---'
: i
'---'
u
I :
i
'---'
I 1
i I
,
~l
i I
'---'
, i
-'
I !
I
I I
U
)
I I
---J