title: Get list of folder paths of subfolders of a given location
body: <p>I need to create a batch script to get a list of all subfolders (not recursive!) of the directories located in a specific given location, for which the directory names start with one of a few predefined values. The list should only contain absolute paths. I can't use Powershell or other additional tools.   </p>
  
  <pre><code>@echo off
  set "yourDir=C:\FileStore"
  for %%b in ("AB*","FG*") do (
      for /d %%a in ("%yourDir%\%%b") do (
          echo %%~fa
      )
  )
  </code></pre>
  
  <p>This results in an empty list and doesn't work...</p>