title: How can I echo subdirectory + all the files inside?
body: <p>Sorry, there is my updated question.</p>
  <p>I want to echo all the subfolders and all the files with a specific extension that are inside those subfolders. I would like to echo them like this :</p>
  <pre><code>Subfolder 1 :
  &quot;C:\Users\546802\Desktop\outil_5s\env_test\Subfolder1\File1.mjb&quot;
  &quot;C:\Users\546802\Desktop\outil_5s\env_test\Subfolder1\File2.mjb&quot;
  Subfolder 2 :
  &quot;C:\Users\546802\Desktop\outil_5s\env_test\Subfolder2\File1.mjb&quot;
  &quot;C:\Users\546802\Desktop\outil_5s\env_test\Subfolder2\File2.mjb&quot;
  Subfolder 3 :
  &quot;C:\Users\546802\Desktop\outil_5s\env_test\Subfolder3\File1.mjb&quot;
  &quot;C:\Users\546802\Desktop\outil_5s\env_test\Subfolder3\File2.mjb&quot;
  </code></pre>
  <p>At the moment, I only manage to echo all the files. So there is two things to see :</p>
  <ol>
  <li>How can I echo both of this things.</li>
  <li>How can I echo specific file only.</li>
  </ol>
  <p>There is my actual code :</p>
  <pre><code>setlocal enableDelayedExpansion
  set ext=&quot;.mjb&quot;
  for /f &quot;delims=&quot; %%F in ('dir /b /s /a-d &quot;%_FolderName%&quot;^| findstr /vile &quot;!ext!&quot;') do echo &quot;%%F&quot;
  </code></pre>
  <p>And this is my actual result (I'm trying this in a test_env) :</p>
  <pre><code>&quot;C:\Users\546802\Desktop\outil_5s\env_test\Plein1\Fichier1.qds&quot;
  &quot;C:\Users\546802\Desktop\outil_5s\env_test\Plein1\Fichier2.txt&quot;
  &quot;C:\Users\546802\Desktop\outil_5s\env_test\Plein1\Fichier4.iso&quot;
  &quot;C:\Users\546802\Desktop\outil_5s\env_test\Plein1\Fichier5.iso&quot;
  &quot;C:\Users\546802\Desktop\outil_5s\env_test\Plein1\Fichier6.mjb&quot;
  &quot;C:\Users\546802\Desktop\outil_5s\env_test\Plein1\Plein1\Fichier1.iso&quot;
  &quot;C:\Users\546802\Desktop\outil_5s\env_test\Plein1\Plein1\Fichier2.mjb&quot;
  &quot;C:\Users\546802\Desktop\outil_5s\env_test\Plein1\Plein1\Fichier3.mjb&quot;
  &quot;C:\Users\546802\Desktop\outil_5s\env_test\Plein1\Plein1\Fichier4.wmf&quot;
  &quot;C:\Users\546802\Desktop\outil_5s\env_test\Plein2\Fichier1.txt&quot;
  &quot;C:\Users\546802\Desktop\outil_5s\env_test\Plein2\Fichier4.pdf&quot;
  &quot;C:\Users\546802\Desktop\outil_5s\env_test\Plein2\Fichier5.iso&quot;
  &quot;C:\Users\546802\Desktop\outil_5s\env_test\Plein2\Fichier6.mjb&quot;
  </code></pre>