# Need help with moving files

**URL:** <https://boards.straightdope.com/t/need-help-with-moving-files/406154>\
**Category:** Factual Questions\
**Created:** [May 31, 2007, 2:37am UTC](https://boards.straightdope.com/t/need-help-with-moving-files/406154 "2007-05-31T02:37:46Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![MannyL](https://avatars.discourse-cdn.com/v4/letter/m/ba8739/32.png) [@MannyL](https://boards.straightdope.com/u/MannyL)\
**Post date:** [May 31, 2007, 2:37am UTC](https://boards.straightdope.com/t/need-help-with-moving-files/406154/1 "2007-05-31T02:37:46Z")

</div>

I have the following situation

I want to move to [some drive:\music] some files. All the files I want to move match the match the wildcard of ???.m??. The problem is the folder structure is

[another drive:\random char\more random(bunch of files)

I tried using xcopy and it ended up copying the files but also copied the directory structure which I don’t want. I just want all the files to end up in [some drive:\music]  
any suggestions?

---

<div class="post-metadata">

**Author:** ![ftg](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/ftg/32/2801_2.png) [@ftg](https://boards.straightdope.com/u/ftg)\
**Post date:** [May 31, 2007, 3:17am UTC](https://boards.straightdope.com/t/need-help-with-moving-files/406154/2 "2007-05-31T03:17:39Z")

</div>

Use [xxcopy](http://www.xxcopy.com/index.htm) for all your non-trivial file copying needs. Note the “inclusion” switch in the features list.

---

<div class="post-metadata">

**Author:** ![MannyL](https://avatars.discourse-cdn.com/v4/letter/m/ba8739/32.png) [@MannyL](https://boards.straightdope.com/u/MannyL)\
**Post date:** [May 31, 2007, 3:34am UTC](https://boards.straightdope.com/t/need-help-with-moving-files/406154/3 "2007-05-31T03:34:28Z")

</div>

Great just what I needed. This will be a great tool for my future use as well
