# XCopy exclude patterns ignored

**URL:** https://www.finalbuilder.com/forums/t/xcopy-exclude-patterns-ignored/2665
**Category:** Bugs
**Created:** [August 22, 2006, 3:46am UTC](https://www.finalbuilder.com/forums/t/xcopy-exclude-patterns-ignored/2665 "2006-08-22T03:46:08Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![deleted\_user](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/deleted_user/32/937_2.png) [@deleted\_user](https://www.finalbuilder.com/forums/u/deleted_user)
#### Post date: [August 22, 2006, 3:46am UTC](https://www.finalbuilder.com/forums/t/xcopy-exclude-patterns-ignored/2665/1 "2006-08-22T03:46:08Z")

</div>

When you use the XCopy action and add file masks to the exclude list (such as \*.cs), the excludes are ignored.  
  
I’ve been able to work around this using the FileSet actions so far, but XCopy would be nice to use as well.  
  
 - Glen

---

<div class="post-metadata">

### Author: ![angus](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/a/b3f665/32.png) [@angus](https://www.finalbuilder.com/forums/u/angus)
#### Post date: [August 23, 2006, 2:33am UTC](https://www.finalbuilder.com/forums/t/xcopy-exclude-patterns-ignored/2665/2 "2006-08-23T02:33:30Z")

</div>

Hi Glen,  
  
Thanks for your post. For some reason, XCopy only does direct substring matching for exclude lists. So the correct form is ‘.cs’, not ‘\*.cs’.  
  
I’ve added a note to the action property page about this.  
  
Regards,  
  
  
Angus
