Copy
| Action: | Copies
one or more files or directories. |
||||||||
| Syntax: | COPY
"source" "target"
[/c] [/h] [/r] [/s]
|
||||||||
| Remarks: |
If the source or target specifies a directory, please make sure to add a trailing backslash. Wildcards are supported. If a file already exists at the target, it is overwritten without warning. If
the /c argument is not specified, and an error is encountered, the
copy process will be aborted. |
||||||||
| See Also: |
CD,
Del, Go, MD,
Move,
RD |
||||||||
| Examples: |
; The following examples copy all files
in MyDir to NewDir COPY "S:\MyDir\*.*" "S:\NewDir\*.*" COPY "S:\MyDir\." "S:\NewDir\." COPY "S:\MyDir\" "S:\NewDir\"
; If the target (directory) does not
exist, |