FORMAT: COPY[FROM] {(name|pattern)} [TO] (name) [ALL] [QUIET] [BUF] [BUFFER=(n)[CLONE] [DATES] [NOPRO] [COM] [NOREQ]Template: FROM,/M,TO/A,ALL/S,QUIET/S,BUF=BUFFER/K/N,CLONE/S,DATES/S,NOPRO/S,COM/S,NOREQ/SLocation C:
COPY copies the file or directory specified with the FROM argument to the file or directory specified by the TO argument. You can copy several items at once by giving more than one name/pattern in the FROM argument; they should be separated by spaces. If the FROM argument is a pattern or consists of multiple names, the TO argument must be a directory.
If a To file name already exists, COPY overwrites the TO file with the FROM file. You can use a pair of double quotation marks ("") to refer to the curent directory. Do not put any spaces between the double quotiation marks.
If the FROM argument is a directory, only the directory's files are copied; its subdirectories are not copied. Use the ALL option to copy the complete directory, including its files, subdirectories, and the subdirectories' files. it is possible to create a directory as you copy if you are copying more than one file. To give the new directory name, specify the directory name as the last component in the TO argument's path. Tis can be any name, including the same name as the original file if it is on a diffrent path.
COPY prints to the screen the name of each file as it is copied. This can be overridden by the QUIET option
The BUF= option is used to set the numbe of 512-byte buffers used during the copy. (defaut is 128 buffers, 64KB of RAM.) limit the number of buffers when copying to RAM:. BUF=0 uses a buffer the same size as the file to be copied.
By default, COPY gives a TO file the timestamp of when the copy was made, rather than that of the original file. Also by default, comments attached to the original FROM file are not copied and the protection bits of the FROM file are copied to the TO file. You can override these defaults using the following:
CloneCOPY displays a requester if the COPY cannot continue. When the NOREQ option is given, all requesters are suppresed. Use this in scripts to prevent a COPY failure from stopping the script to wait for a responce. With the NOREQ option, the COPY command is aborted and the script continues.
Example:
copies File1 in the current directory to the Work directory in the root of the current device, renaming it File2