snippetbashTip
xcopy — Copy files and directory trees. More information: <https://learn.microsoft.com/windows-server/admini
Viewed 0 times
directorycommandfilescopyandclixcopytrees
windows
Problem
How to use the
xcopy command: Copy files and directory trees. More information: <https://learn.microsoft.com/windows-server/administration/windows-commands/xcopy>.Solution
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}} /pCopy the directory structure only, excluding files:
xcopy {{path\to\file_or_directory}} {{path\to\destination_directory}} /tInclude empty directories when copying:
xcopy {{path\to\file_or_directory}} {{path\to\destination_directory}} /eKeep the source ACL in the destination:
xcopy {{path\to\file_or_directory}} {{path\to\destination_directory}} /oAllow resuming when network connection is lost:
xcopy {{path\to\file_or_directory}} {{path\to\destination_directory}} /zDisable the prompt when the file exists in the destination:
xcopy {{path\to\file_or_directory}} {{path\to\destination_directory}} /yDisplay help:
xcopy /?Code Snippets
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}} /pCopy the directory structure only, excluding files
xcopy {{path\to\file_or_directory}} {{path\to\destination_directory}} /tInclude empty directories when copying
xcopy {{path\to\file_or_directory}} {{path\to\destination_directory}} /eKeep the source ACL in the destination
xcopy {{path\to\file_or_directory}} {{path\to\destination_directory}} /oContext
tldr-pages: windows/xcopy
Revisions (0)
No revisions yet.