40
MS-DOS User's Reference
•
If
the
second
option
includes a drive name, MS-DOS
copies
the
original file
to
one
on
the
specified drive_ For example,
the
fol-
lowing
command
makes a
copy
of
memo_
doc
on
the
default
drive, names
the
copy
letter.doc, and places
the
copy
on
the
disk in drive
B:
copy
memo.doc
b:letter.doc
The
Iv
switch causes MS-DOS
to
verify
that
the
sectors
written
on
the
target disk
are
recorded
properly. If MS-DOS
cannot
verify
a write,
it
displays an
error
message. Although
there
are
rarely
recording
errors
when
you
run
copy,
the
Iv
switch
lets
you verify
that critical data has
been
correctly
recorded; it also makes
the
copy
command
run
more
slowly
because
MS-DOS
must
check
each
entry
recorded
on
the
disk.
The
fa
or
!b
switch lets
you
copy
either
ASCII
or
binary files,
respectively. Each switch applies
to
the
filename
preceding
it, and
to
all remaining filenames in
the
command, until
copy
encounters
another
fa
or
!b
switch.
Examples:
When
used with a
source
filename:
fa
!b
Causes
the
file
to
be
treated
as an
ASCII
(text)
file. Data
in
the
file is
copied
up
to
but
not
including
the
first
end-of-file mark
(in
edlin
this is CONTROL-Z).
The
remainder
of
the
file is
not
copied.
Causes
the
entire
file
to
be
copied, including any end-
of-file marks.
When
used
with
a target filename:
fa
!b
Causes an end-of-file
character
to
be
added
as
the
last
character
of
the
file; for example:
copy
memo.doc
la
letter.doc
Does
not
add an end-of-file character; for example:
copy
billing.asm
Ib
billing2.asm
When you
are
appending files
the
default
switch
is always fa.
c
c
L'