From ccb73597b131818a25122011da8ebb5e4614a39f Mon Sep 17 00:00:00 2001 From: Owen Voke Date: Thu, 3 May 2018 17:35:50 +0100 Subject: [PATCH] xcopy: add page (#2084) --- pages/windows/xcopy.md | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 pages/windows/xcopy.md diff --git a/pages/windows/xcopy.md b/pages/windows/xcopy.md new file mode 100644 index 0000000000..a30792c852 --- /dev/null +++ b/pages/windows/xcopy.md @@ -0,0 +1,35 @@ +# xcopy + +> Copy files and directory trees. + +- Copy the file(s) to the specified destination: + +`xcopy {{path/to/file_or_folder}} {{path/to/destination}}` + +- List files that will be copied before copying: + +`xcopy {{path/to/file_or_folder}} {{path/to/destination}} /p` + +- Copy the directory structure only, excluding files: + +`xcopy {{path/to/file_or_folder}} {{path/to/destination}} /t` + +- Include empty directories when copying: + +`xcopy {{path/to/file_or_folder}} {{path/to/destination}} /e` + +- Keep the source ACL in the destination: + +`xcopy {{path/to/file_or_folder}} {{path/to/destination}} /o` + +- Allow resuming when network connection is lost: + +`xcopy {{path/to/file_or_folder}} {{path/to/destination}} /z` + +- Disable the prompt when the file exists in the destination: + +`xcopy {{path/to/file_or_folder}} {{path/to/destination}} /y` + +- Display detailed usage information: + +`xcopy /?`