Xcopy--Notes
Default value for destination
If you omit destination, the xcopy command copies the files to the current directory.
Specifying whether destination is a file or directory
If destination does not contain an existing directory and does not end with a
backslash (\), xcopy prompts you with a message in the following format:
Does destination specify a file name
or directory name on the target
(F = file, D = directory)?
Press F if you want the file(s) to be copied to a file. Press D if you want the file(s) to be copied to a directory.
You can avoid this prompt by using the /i switch. If the /i switch is used xcopy assumes the destination is a directory if the source is more than one file or
a directory.
Xcopy sets archive attribute for destination files
Xcopy creates files with the archive attribute set, whether or not this attribute
was set in the source file. For more information about file attributes, see the attrib command.
Xcopy vs. diskcopy
If you have a disk that contains files in subdirectories and you want to copy
it to a disk that has a different format, you should use the xcopy command instead of diskcopy. Since the diskcopy command copies disks track by track, it requires that your source and
destination disks have the same format. Xcopy has no such requirement. In general, use xcopy unless you need a complete disk image copy.
Xcopy exit codes
The following list shows each exit code and a brief description of its
meaning: