title: Copying file names to a text file in PowerShell
body: <p>I've currently got a PowerShell script that copies the file names in a directory to a text file. It excludes .info files from the copy. This is my code as it stands:</p>
  
  <pre><code>Get-ChildItem -Path "C:\Test\" -Recurse -name -exclude '*.info' | out-file C:\Test.txt
  </code></pre>
  
  <p>I need to dump out a different text file for each individual file it copies the name of, with the name of the text file that of the name it copies.</p>
  
  <p>I've done a lot of reading and still can't seem to find a resolution. How can I fix it?</p>