Partager via


copy

This command copies a file or directory tree.

copy [src filesys path] [dst filesys path]

Parameters

  • src filesys path
    Specifies the full pathname of the file or directory to copy. If a directory is specified, then all files and subdirectories it contains are copied.
  • dst filesys path
    Specifies the full pathname of the destination location of the copied data.

Remarks

This command automatically creates the destination directory for the copy if it does not already exist.

The following code example copies a file called myfile.txt to a different directory:

copy \volume\myfile.txt \volume\dir\myfile.txt

See Also

File System Commands

 Last updated on Thursday, April 08, 2004

© 1992-2003 Microsoft Corporation. All rights reserved.