Quantcast
Channel: File Services and Storage forum
Viewing all articles
Browse latest Browse all 13565

Collapse the directory tree in xcopy

$
0
0

Forgive the elementary question on xcopy.  It's been rather a long time since I played with it.  Last century, in fact.

How do I select a particular file type (*.pst) from the entire folder tree of the source, and copy all of them to a single folder in the destination?

e.g.:  xcopy *.pst destinationFolder /S      results in

     destinationfolder
          subfolder1

               subfolder11

                    subfolder111

                         firstinstance.pst

          subfolder2

               subfolder21

                    secondinstance.pst

etc.

What I want is:

     destinationfolder

          firstinstance.pst

          secondinstance.pst

          etc.


Viewing all articles
Browse latest Browse all 13565

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>