title: How do I recursively list all files of type *.mp3 in a Windows .bat file?
body: <p>I want to recursively list the absolute path to all files that end with <code>mp3</code> from a given directory which should be given as relative directory.</p>
  
  <p>I would then like to strip also the directory from the file and I have read that variables which are in a <code>for</code>-scope must be enclosed in <code>!</code>s. Is that right?</p>
  
  <p>My current code looks like this:</p>
  
  <pre><code>for /r %%x in (*.mp3) do (
      set di=%%x
      echo directory !di!
      C:\bla.exe  %%x !di!
  )
  </code></pre>