I'd like to use xcopy on a Windows machine to pull out all files with .doc extension into a single directory.
An example:
I need to copy the .doc file from the below source:
D:\new folder\new1\new1-1\new\y.doc
D:\new folder\new2\new2-1\new\y.doc
D:\new folder\new3\new3-1\new\y.doc
D:\new folder\new4\new4-1\new\y.doc
D:\new folder\new5\new5-1\new\y.doc
:
:
:
And paste them in D:\test\ as below:
y1.doc
y2.doc
y3.doc
y4.doc
y5.doc
:
:
:
and avoid replacement of the .doc files.