I am using this command to fetch the list of folders. But the problem is i have to multiple times. The folder structure is signcollections\0022. the last value should keep on changing until it has folders. please help to run a loop as this is first time i am using DOS command.
dir /b "0022"> f.txt