I want to fetch the names of the subfolders inside a folder using windows batch script. Can anyone pls help me out?
views:
34answers:
1
A:
This will give you the list of directories (folder) within your chosen directory (folder).
dir path-to-folder /ad
Jacobo de Vera
2010-09-06 10:35:54
Thanks a lot. How could I store the name of that subfolder for subsequent use? Any help would be much appreciated!
sid
2010-09-06 10:58:42
I don't know how to do that, sorry, but somebody seems to have [answered a similar question](http://stackoverflow.com/questions/998366/how-to-store-hostname-in-a-variable-in-a-bat-file) before.
Jacobo de Vera
2010-09-06 13:41:55