The xcopy command is a Command Prompt command used to copy one or more files and/or folders from one location to another location.

The xcopy command, with its many options and ability to copy entire directories, is similar to, but much more powerful than, the traditional copy command.

The robocopy command is also similar to the xcopy command but has even more options.

Example:

xcopy /s /y ..\folder1\*.txt C:\folder2

Sources:

https://www.lifewire.com/xcopy-command-2618103