Copy
Copies one or more files to another location.
This command can also be used to combine files. When more than one file is
copied, Windows NT displays each filename as the file is copied.
copy [/a|/b] source [/a|/b] [+ source [/a|/b] [+ ...]] [destination [/a|/b]] [/v] [/n] [/z]
Parameters
source
Specifies the location and name of a file or set of files from which you want
to copy. Source can consist of a drive letter and colon, a directory name, a filename, or a
combination.
destination
Specifies the location and name of a file or set of files to which you want to
copy. Destination can consist of a drive letter and colon, a directory name, a filename, or a
combination.
/a
Indicates an ASCII text file. When the /a switch precedes the list of filenames on the command line, it applies to all
files whose names follow the /a switch, until copy encounters a /b switch, in which case the /b switch applies to the file whose name precedes the /b switch.
When the /a switch follows a filename, it applies to the file whose name precedes the /a switch and to all files whose names follow the /a switch, until copy encounters a /b switch, in which case the /b switch applies to the file whose name precedes the /b switch. An ASCII text file can use an end-of-file character (CTRL+Z) to
indicate the end of the file. When combining files, copy treats files as ASCII text files by default.
/b
Indicates a binary file. When the /b switch precedes the list of filenames on the command line, it applies to all
files whose names follow the /b switch, until copy encounters an /a switch, in which case the /a switch applies to the file whose name precedes the /a switch.
When the /b switch follows a filename, it applies to the file whose name precedes the /b switch and to all files whose names follow the /b switch, until copy encounters an /a switch, in which case the /a switch applies to the file whose name precedes the /a switch.
The /b switch specifies that the command interpreter is to read the number of bytes
specified by the file size in the directory. The /b switch is the default value for copy unless copy is combining files.
/v
Verifies that new files are written correctly.
/n
Uses a short filename, if available, when copying a file with a non-8dot3 name.
/z
Copies over a network in restartable mode.
See Also
Xcopy
More Information About Copy
Copy--Notes
Copy--Examples