title: Retrieving folder names to use in for loop - Batch
body: <p>So I am relatively new with creating batch files, and I would say I know a fair amount when it comes to programming but I am just trying to get a grasp on the syntax. So hopefully I don't butcher this explanation:
  I am trying to do a for loop through a directory to retrieve the names of folders, not the folder path but the name as a string. I believe that is relatively straight-forward, but I am wanting for every folder name retrieved - perform an action using that folder name string then move on to the next string. A simple for loop, but batch seems a little different. Any help or recommendations would be greatly appreciated.
  Thank you.</p>
  <p>Edit - When I say action I mean a list of actions to perform. So a little more than just a simple echo.</p>