Updated and Reviewed April 2010
COPY copies files from one place or name to another.
COPY {outspec} = inspec1 {inspec2, … inspectN} {switches}
Parameters
outspec
specifies an output file, using either AMOS-style (e.g. DSK1:MYFILE.DAT[123,4]) or native operating system syntax. If outspec is not specified, the default is *.*—i.e., use the name.ext of each inspec file.
inspec
specifies an input file, using either AMOS-style or native operating system syntax. AMOS-style filespecs may include the * and ? and [] wildcards (e.g. DSK?:[]*.TMP). Native operating system filespecs must be individually quoted, must include at least one slash, and must not contain wildcards (e.g. "./this native file.lst","/tmp/somefile.tmp"). More than one inspec may be specified, in which case they must be separated by commas.
switches
|
Switch |
Function |
|
/D |
Delete: overwrites an existing output file. |
|
/Q |
Query: prompts for a confirmation before copying each of the input files. |
|
/C |
Similar to {/query} except that it only prompts you to confirm whenever the destination already exists. (If you are prone to accidentally overwriting important files by loose-fingered copy commands, you may want to rename COPY.LIT to something else, then create a COPY.DO which forces the /C switch to be specified.) |
|
/mindays:# |
Ignore files changed within the last # days. |
|
/minsecs:# |
Ignore files changed within the last # seconds. |
|
/NOD |
Do not overwrite existing files (no delete) |
|
/? |
Writes switch listing and usage info to the screen. |