Note
The
file sizes and dates you
see
on
your
screen
may differ
from
the
ones
shown
here,
depending
on
your
version
of
MS-DOS.
Don't worry, though. Such variations
do
not
affect
the
way
you
use MS-DOS
or
the
way MS·
DOS
responds
to
your
commands.
Note
The
filenames used in
the
following examples are for illus-
trative
purposes
only -
to
use
these
commands,
you
would
substi-
tute
the
name
of
a file
on
the
default disk.
The Copy Command
If
you
need
to
copy files, you
can
use
the
copy
command
to
copy
one
or
more
files,
either
on
the
same disk
or
from
one
disk
to
another. For instance, suppose you
need
a copy
of
a file
named
sales. doc that you have
on
a disk in drive
A,
and suppose
you
want
to
call this
new
copy montbly. rpt:
Example
To
copy
the
sales.doc file and call
the
new
copy
montbly.rpt
you
would
just follow these steps:
m Make
sure
that
the
disk
with
the
sales.doc file is in drive A
and
that A is
the
default drive.
rn
At
the
MS·DOS prompt, type
the
following command:
copy
sales.doc
monthly.rpt
~
Press
the
RETURN key.
When
you make a copy
of
a file, you
cannot
give
the
new
file
the
same
name
as the original file. You can, however,
copy
a file from
one
disk
to
another
and keep
the
same filename. For example,
to
copy
a file from the disk in drive A
to
the
disk in drive
B,
use
the
following command:
copy
a:sales.doc
b:sales.doc
I
Make a copy J ( I
Name
the copy
of
the
of
a
file...
file
"sales.doc" as
well,
...
...
named
"sales.
doc "
...
and put it on
the
disk
in
drive
B.
on
drive
A.
Note In
the
above example, if A is
the
default drive
(that
is,
if
the
prompt
is
A»,
you
needn't
type
the
letter
a,
followed by a
colon, before
the
first filename. Also, by default,
the
copy
will have
the
name
of
the original file
if
you
do
not specify a
new
name. For
example,
the
following commands all
produce
the
same result:
Using Commands
27
Copying a file