title: Copy files from directory structure but exclude a named folder
body: <p>I am looking to copy files from a directory structure over to a new folder. I am not looking to preserve the file structure, just get the files. The file structure is such that there can be nested folders, but anything in a folder named 'old' I do not want moved over.</p>
  
  <p>I made a couple attempts at it, but my powershell knowledge is very limited.</p>
  
  <p>Example being where the current file structure exists:</p>
  
  <pre><code>Get-ChildItem -Path "C:\Example\*" -include "*.txt -Recurse |% {Copy-Item $_.fullname "C:\Destination\"}
  </code></pre>
  
  <p>This gives me all the files all I want, including all the files I don't want. I do not want to include any files that are in the 'old' folder. To note: there are multiple 'old' folders. I tried -exclude, but it looks like it only pertains to the file name, and I am not sure how to -exclude on a path name, while still copying the files.</p>
  
  <p>Any help?</p>