title: Using Get-ChildItem -Exclude or -Include returns nothing
body: <p>I have a list in my C: directory that has many files. If I try to run an <code>-Exclude</code> on it, I get no returns. Same with <code>-Include</code>. If I use <code>-Filter</code>, it returns what I expected to get back. Am I not understanding what it should be doing?</p>
  <p>Here is an example of what I am running and getting nothing:</p>
  <pre><code>Get-ChildItem -Path C: -Exclude &quot;*.txt&quot;
  </code></pre>
  <p>I get nothing back. If I run</p>
  <pre><code>Get-Childitem -filter &quot;*.txt&quot;
  </code></pre>
  <p>I get this back:</p>
  <pre><code>  Mode                LastWriteTime         Length Name                                                                               
  ----                -------------         ------ ----                                                                               
  -a----        11/7/2007   8:00 AM          17734 eula.1028.txt                                                                      
  -a----        11/7/2007   8:00 AM          17734 eula.1031.txt                                                                      
  -a----        11/7/2007   8:00 AM          10134 eula.1033.txt                                                                      
  -a----        11/7/2007   8:00 AM          17734 eula.1036.txt                                                                      
  -a----        11/7/2007   8:00 AM          17734 eula.1040.txt                                                                      
  -a----        11/7/2007   8:00 AM            118 eula.1041.txt                                                                      
  -a----        11/7/2007   8:00 AM          17734 eula.1042.txt                                                                      
  -a----        11/7/2007   8:00 AM          17734 eula.2052.txt                                                                      
  -a----        11/7/2007   8:00 AM          17734 eula.3082.txt                                                                      
                 7/7/2016   8:50 AM             93 HaxLogs.txt                                                                        
  -a----         7/8/2016   8:30 AM              0 Test.txt 
  </code></pre>