1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-23 18:02:08 +02:00
tldr/pages/windows/xcopy.md
Vitor Henrique 46a054215a
pages*: make help and version commands comply with the style guide (#12107)
* pages*: use generic word for help

* git: add newline to the end

Co-authored-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com>

* pages*: make help and version commands comply with the style guide

* java: fix Java name

---------

Co-authored-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com>
2024-01-30 12:55:24 +08:00

1 KiB

xcopy

Copy files and directory trees. More information: https://learn.microsoft.com/windows-server/administration/windows-commands/xcopy.

  • Copy the file(s) to the specified destination:

xcopy {{path\to\file_or_directory}} {{path\to\destination_directory}}

  • List files that will be copied before copying:

xcopy {{path\to\file_or_directory}} {{path\to\destination_directory}} /p

  • Copy the directory structure only, excluding files:

xcopy {{path\to\file_or_directory}} {{path\to\destination_directory}} /t

  • Include empty directories when copying:

xcopy {{path\to\file_or_directory}} {{path\to\destination_directory}} /e

  • Keep the source ACL in the destination:

xcopy {{path\to\file_or_directory}} {{path\to\destination_directory}} /o

  • Allow resuming when network connection is lost:

xcopy {{path\to\file_or_directory}} {{path\to\destination_directory}} /z

  • Disable the prompt when the file exists in the destination:

xcopy {{path\to\file_or_directory}} {{path\to\destination_directory}} /y

  • Display help:

xcopy /?