title: How to show only filenames without extensions using dir command
body: <p>I'm trying to list out file names excluding their extension,</p>
  <p>How I want it:</p>
  <pre><code>File1
  File2
  File3
  </code></pre>
  <p>How it currently is:</p>
  <pre><code>File1.txt
  File2.txt
  File3.txt
  </code></pre>
  <p>I tried using</p>
  <pre class="lang-bat prettyprint-override"><code>@echo off
  dir /A:-D /B
  pause
  </code></pre>
  <p>but it isn't working. I tried it in both a batch file and in command prompt.</p>
  <p>Am I using the right command?</p>