
If you are needing to list only the directories in a folder, this can be accomplished with the DIRĀ [1]command in Windows. By default, DIR will list all files and folders. To list only directories, run DIR with the following options:
dir /AD
This will give you a list of all the directories in the folder where the command was ran.