Copy
Description
The Copy command copies file(s) or directories from one location to another.
Installation
The Copy command file is installed in the SYS:C/ directory by default. |
Versions
Latest versions are 46.10 and 54.10
Use the Updater utility to upgrade to and install the latest available version. |
Command Line Usage
FROM/M,TO/A,ALL/S,Q=QUIET/S,BUF=BUFFER/K/N,CLONE/S,DATES/S,NOPRO=NOPROTECTION/S ,COM=COMMENT/S,NOREQ=NOREQUESTERS/S,NOREP=NOREPLACE/S,INTER=INTERACTIVE=ASKREP =ASKREPLACE/S,FORCE/S,NEWER/S,ARC=ARCHIVE/S,COPYLINKS/S,SPEED/S,STATS/S
Usage of options up to and including NOREQ is the same as with previous versions of Copy.
V46 / V54 only::
NOREP: Doesn't overwrite existing files.
INTER / ASKREP: Prompts user for confirmation to overwrite existing files.
FORCE: Overwrites existing files even if they are protected.
NEWER: Overwrites existing files only with ones that have more recent dates.
ARCHIVE: Copies only files that don't have the archive protection bit set, and sets the archive bit to the files in source that have been copied.
COPYLINKS: Also copies soft and hard links. This means that it replicates the soft or hard link. If it fails to replicate a hard link it then tries to replicate it as a soft link.
SPEED: Displays time and transfer rate information for the copy operation.
This is not an accurate indicator of the speed of the media used. It is also affected by CPU and interface speed as well as copy buffer size.
STATS: Displays statistics such as number of files that have been copied,
have failed to be copied, or that were intentionally skipped.
Can be made resident: Yes
Example Usage
Here are some examples of using the Copy command in the Shell(CLI):
Example 1:
1> Copy C: TO Backup:C
Copies the contents of the C: location to a directory called Backup:C. If the destination directory does not exist then the Copy command will create it before copying the contents to this location.
Example 2:
1> Copy SYS:#?.info TO Backup:
This example uses a wildcard signified by #?. This specifies to copy all files with the .info extension from the SYS: location to Backup:.
Example 3:
1.Backup:Devs> Copy Devs: TO ""
In this example we are currently changed directory to the Backup:Devs directory. The Copy command will copy all files from the Devs: location to the current directory. This is signified by the specifying the double quotes "" as the destination.
Example 4:
1.Backup:Devs> Copy Devs: TO "" ALL
In this example we are currently changed directory to the Backup:Devs directory. The Copy command will copy all files and all directories from the Devs: location to the current directory. This is signified by the specifying the double quotes "" as the destination. The ALL option ensures that any directories in the source location will be copied in addition to any files.
Example 5:
1.System:C> COPY ~(#?.info) TO Backup:C
In this example we are currently changed directory to the Backup:C directory. The Copy command will copy all files from the current directory System:C location to the Backup:C destination directory. However any files with the .info extension will be skipped over and omitted in the copy procedure.
In all of these examples the TO option can be omitted for convenience.
Copyright
Copyright (C) 2022 AmigaKit Ltd. Distributed with the Enhancer Software under licence.