title: Clear-Content Powershell not working
body: <p>I am new to Powershell.  I am referring to Clear-Content example mentioned in <a href="http://www.activexperts.com/network-monitor/windowsmanagement/powershell10/0026/" rel="nofollow">this link</a></p>
  
  <p>I have a directory <code>d:\data\lab.</code>  Inside Lab different directories and subdirectories.  each directory and subdirectory contains <code>*.txt file</code>.  </p>
  
  <p>I want to write a powershell command which will empty content of all the txt files which are inside <code>d:\data\lab</code></p>
  
  <p>I am using bellow command</p>
  
  <pre><code>Clear-Content D:\data\Lab\* -Filter *.txt
  </code></pre>
  
  <p>I tried so many permutation and combination, but its not removing content of text files which are inside <code>d:\data\lab</code> folder.</p>
  
  <p>Can anybody help?</p>
  
  <p>Thanks,</p>