title: File Output in Powershell without Extension
body: <p>Here is what I have so far:</p>
  
  <pre><code>Get-ChildItem "C:\Folder" | Foreach-Object {$_.Name} &gt; C:\Folder\File.txt
  </code></pre>
  
  <p>When you open the output from above, File.txt, you see this:</p>
  
  <pre><code>file1.txt
  file2.mpg
  file3.avi
  file4.txt
  </code></pre>
  
  <p>How do I get the output so it drops the extension and only shows this:</p>
  
  <pre><code>file1
  file2
  file3
  file4
  </code></pre>
  
  <p>Thanks in advance!</p>
  
  <p><em><strong>EDIT</em></strong></p>
  
  <p>Figured it out with the help of the fellows below me. I ended up using:</p>
  
  <pre><code>Get-ChildItem "C:\Folder" | Foreach-Object {$_.BaseName} &gt; C:\Folder\File.txt
  </code></pre>