xcopy directories and subdirectories recursively and filter only filenames by extension

Posted by DxCK on Stack Overflow See other posts from Stack Overflow or by DxCK
Published on 2010-06-01T18:39:53Z Indexed on 2010/06/01 18:43 UTC
Read the original article Hit count: 332

Filed under:
|
|
|
|

Here is what i have for now:

xcopy "c:\projects\SampleProject" "c:\temp\copytest" /E /H /EXCLUDE:elist.txt

It does all the job i need except filtering filenames by extensions.

For example: copy all *.exe files from c:\temp\copytest and subdirectories.

How to do that?

© Stack Overflow or respective owner

Related posts about batch

Related posts about filtering