title: Get full path of the files in PowerShell
body: <p>I need to get all the files including the files present in the subfolders that belong to a particular type.</p>
  
  <p>I am doing something like this, using <a href="http://technet.microsoft.com/en-us/library/hh849800.aspx">Get-ChildItem</a>:</p>
  
  <pre><code>Get-ChildItem "C:\windows\System32" -Recurse | where {$_.extension -eq ".txt"}
  </code></pre>
  
  <p>However, it's only returning me the files names and not the entire path.</p>