title: (Batch File) List files in a specific directory but only filenames?
body: <p>Hi Im quite new to programing and Im trying to make a batch file list music in one of my folders but i only want to see the names. I always get something like this: </p>
  
  <blockquote>
    <p>C:\users\sebastian\appdata\roaming\zones\music\song1.mp3</p>
  </blockquote>
  
  <p>this is what i used</p>
  
  <pre><code>for %%a in (%userprofile%\AppData\Roaming\Zones\Music\*.mp3) do echo %%a
  </code></pre>
  
  <p>is there any way i can get it to just say <strong>song1</strong> or at least <strong>song1.mp3</strong></p>