i"'
I
i"'
) .
r-'
l '
r--
I '
l
_I
~
i
'-
r
r
I :
,..,
I
Chapter 6 / Command Reference
• Remember,
the
target
disk
must
be
formatted
and
the
target
directory
must
exist.
Examples
copy
*.
* / a
b:
I
ENTER
I
copies
all
the
files from
A:
\ to
B:
\.
mk d 1 r \
bin
I
ENTER
I
cop
Y
for
mat
.
com
\
bin
I
ENTER
I
transfers external commands to another directory by first creat-
ing the directory \ BIN
in
the root directory of
the
system disk
in
Drive A and copying Format.com into it.
You
can now
copy
any other .com files you use regularly into the
\BIN
directory.
copy
\per50nal.dat
b:
I
ENTER
I
copies the file personal.dat from the root directory of Drive A to
the
current
directory of Drive
B.
copy
mem05.txt
/a
b:corr.txt
I
ENTER
I
copies
the
file Memos.
txt
from the
current
directory to the' cur-
rent
directory of the disk
in
Drive B,
naming
the
new file
Corr.txt. MS-DOS copies information only up to
the
first EOF
character
and
adds
an
EOF character to the end of
the
new file.
copy
b:taxe583.dat
/a
taxe584.dat
I
ENTER
I
copies
the
file Taxes83.dat from the
current
directory
in
Drive B
to
the
current
directory on
the
current
disk,
naming
the
new file
Taxes84.dat. MS-DOS copies information only up to the first
EOF character
and
adds
an
EOF character to
the
end of
the
new
file.
cop
Y
pro
9 .
ex
e
b:
pro
91 .
ex
e I
ENTER
I
copies
the
file Prog.exe
that
is
in
the
current
directory to
the
current
directory of Drive
B.
MS-DOS does not add
an
EOF
character to
the
end of
the
new file, Progl.exe.
55