|
| |
|
K
E
Y |
Common Commands |
INTERNAL |
External |
/SWITCH |
Parameter |
Help text |
AddonTool |
|
Mounted Commands |
.Mount/\Command |
CmdShorthand |
#Constant |
$FUNCTION |
:Procedure |
!GuardNote |
|
Operating Systems |
NT/2K/XP/K3 |
NT Only |
NT/2K |
2K Only |
2K/XP |
XP Only |
XP/K3 |
K3 Only |
2K/XP/K3 |
Related Resources from the NT/2K/XP/K3 Command Library
|
Resource |
|
Short Description |
| |
|
|
Go straight to !GuardNotes. (updated
2004-07-13)
This is the Mounted Help Text. We also archive the Common Help Text
for NT,
2K, XP
and K3
Description
Copies one or more files to another location.
Syntax
COPY [ /A | /B] source [ /A | /B] [+ source [ /A | /B] [+ ...]]
[ destination [ /A | /B]] [/V]
[/N]
COPY [/D]
[/V]
[/N] [/Y
| /-Y] source [ /A |
/B] [+ source [ /A | /B] [+ ...]] [ destination [ /A | /B]]
Parameters and Switches
|
source |
|
Specifies the file or files to be copied. |
|
destination |
|
Specifies the directory and/or filename for the new file(s). |
|
/A |
|
Indicates an ASCII text file. |
|
/B |
|
Indicates a binary file. |
|
/D |
|
Allow the destination file to be created decrypted |
|
/N |
|
Uses short filename, if available, when copying a file with a non-8dot3 name. |
|
/V |
|
Verifies that new files are written correctly. |
|
/Y |
|
Suppresses prompting to confirm you want to overwrite an existing
destination file. |
|
/-Y |
|
Causes prompting to confirm you want to overwrite an existing
destination file. |
|
/Z |
|
Copies networked files in restartable mode. |
Examples, Notes and Instructions
The switch /Y may be preset in the COPYCMD
environment variable. This may be overridden with /-Y on the command line. Default is to prompt on overwrites unless COPY
command is being executed from within a batch script.
To append files, specify a single file for destination, but multiple files for source (using wildcards or file1+file2+file3 format).
GuardNotes
Things that are different (by design, by accident or otherwise)
Syntax variations
The /V and /N switches were moved from after the source/destination
in NT to before the source/destination in 2K/XP/K3. In practice, the
switches are accepted in either position (before or after) on all four platforms (NT/2K/XP/K3).
|