Copies files and directories, including subdirectories.
   copy {d: | [d:]path} [d:][path] [options]


  {d: | d:path}
  The source to copy from.  This must be either a drive or a full

  The destination to copy to.  If not present, xcopy
  assumes the working directory.

  Only copy files with the Archive bit set.

  Only copy files with the Archive bit set, and turn off the A bit.

  Also copies hidden and system files.

  The destination is a directory. Cannot be used with /F.

  The destination is a file. Cannot be used with /D

  Same as /Y.

  Prompt for confirmation before each file.

  Doesn't report the filenames of copied files.

  Allow read-only files to be overwritten.

  Copy subdirectories, except empty ones.

  Copy subdirectories, even if empty.

  Verify each file as it is written to disk.

  Wait before copying any files. Presents a prompt, which you
  must first acknowledge.

  No prompting for confirmation of overwriting files.


The COPYCMD environment variable can be set to make /Y (or /N) the default:
   set COPYCMD=/Y
To cancel the /Y for a particular xcopy command, use /-Y at the command line.

The COPYCMD variable also affects the copy command. Use /Y to change the way both copy and xcopy behave. Use /N, which copy ignores, to change only the way xcopy behaves.

See Also

Copyright © 1998 Jim Hall
This file is derived from the FreeDOS Spec Command HOWTO. See the file H2Cpying.txt for copying conditions.