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

Table of Contents

Advertisement

Copy
I
MS-DOS Commands 391
n
Copy
C*) Purpose:
Copies one or more files to another disk. This command also
^m*.
appends files and copies files on the same disk.
Syntax:
s0m^
copy [drive:]pathname [drive:][pathname] [/v] [/a] [/b]
'
'
(to copy files)
copy pathname + pathname ...
f*^
(to append files)
Comments:
n
If you do not specify the second pathname, the copy is created
Copying a file
on the default drive and has the same name as the original file
(first pathname). If the original file is on the default drive and
^^^
you do not specify the second pathname, the copy command
(i
quits (you are not allowed to copy a file to itself), and ms-dos
displays the following error message:
/•""N
File
cannot
be
copied
onto
itself
f
'
0 File(s) copied
(0m^\
Note
If the source and target files are both in the working direc
tory, you may use filenames instead of complete pathnames.
'
'
The second drive pathname option may take one of three forms:
■ If the second option is a drive name only, ms-dos copies the
fm's\
original file to the designated drive, keeping the original
filename. For example, the following command makes a copy
on drive B named memo. doc.
'
copy memo.doc
b:
nB If the second option is a filename only, ms:dos copies the origi
nal file to one on the default drive, and renames it with the
specified filename. For example, the following command makes
a copy of memo.doc, names it letter.doc, and places it on the
r^)
default drive:
copy
memo.doc
letter.doc

Advertisement

Table of Contents
loading

Table of Contents