Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Using xcopy to copy files from several directories to one directory

Tags:

People also ask

How do I copy a file from multiple directories to one directory?

Select the Home tab. Click Select all in the ribbon, or press Ctrl + A to select all the files in the library view. Click on the Move To or the Copy To button, as per your requirement. The files in the Camera folder and its subfolders are now copied/moved to the destination; the folders remain.

How copy multiple files using xcopy?

To append files, specify a single file for destination, but multiple files for source (that is, by using wildcards or file1+file2+file3 format). If you omit destination, the xcopy command copies the files to the current directory.


Is it possible to use xcopy to copy files from several directories into one directory using only one xcopy command?

Assuming that I have the directory tree

root\Source\Sub1\Sub2

I want to copy all .xml files from the directory root\Source including sub folder to root\Destination. I don't want to copy the folder structure, just the files.