Skip to main content

Copy files and directory trees.

:: To copy the file(s) to the specified destination:
xcopy <path/to/file_or_folder> <path/to/destination>

:: To list files that will be copied before copying:
xcopy <path/to/file_or_folder> <path/to/destination> /p

:: To copy the directory structure only, excluding files:
xcopy <path/to/file_or_folder> <path/to/destination> /t

:: To include empty directories when copying:
xcopy <path/to/file_or_folder> <path/to/destination> /e

:: To keep the source ACL in the destination:
xcopy <path/to/file_or_folder> <path/to/destination> /o

:: To allow resuming when network connection is lost:
xcopy <path/to/file_or_folder> <path/to/destination> /z

:: To disable the prompt when the file exists in the destination:
xcopy <path/to/file_or_folder> <path/to/destination> /y

:: To display detailed usage information:
xcopy /?