Commodore PC Ms-Dos 3.2 User's Manual page 41

Table of Contents

Advertisement

Using Commands 27
Note
The file sizes and dates you see on your screen may differ
from the ones shown here, depending on your version of msdos.
(~*\
Don't worry, though. Such variations do not affect the way you
use msdos or the way msdos 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
<i
sales, doc that you have on a disk in drive A, and suppose you
want to call this new copy monthly.rpt:
/^
Example
BSS_«=1I_^^
To copy the sales.doc file and call the new copy monthly.rpt you
Copying a file
would just follow these steps:
Q] Make sure that the disk with the sales, doc file is in drive A and
that A is the default drive.
^-^
[U At the msdos prompt, type the following command:
copy
sales.doc
monthly.rpt
'
>
H] 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
/—n
copy a file from the disk in drive A to the disk in drive B, use the
following command:
copy
a:sales.doc
brsales.doc
Make a copy
of a file...
...named "sales.doc"
on drive A.
Name the copy of the
file "sales.doc" as well,...
I ...and put it on the disk in drive B.
/—^
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
>—s
the name of the original file if you do not specify a new name. For
'
example, the following commands all produce the same result:

Advertisement

Table of Contents
loading

Table of Contents