create directory to duplicate another directory with filter extensions

daveofgv

Well-known member
Joined
Sep 17, 2008
Messages
218
Location
Dallas, TX
Programming Experience
1-3
Hello,

I have a directory with about 10,000 folders and sub folders. The files within this directory are .docs, .xls, .pdf, .zips and .tif. i need to create the same directory structure but only copy the tif files to the new directory. After I do that I need to copy all the tiffs back to their original directory.

I know how to copy a directory but how could I filter for just tiffs and then copy back to their original folder?

If anyone has any help I would be much apprectiated.

Thanks
 
Back
Top