1

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

1 Answers1

1

Run the below command from command prompt and make sure you are in path required path signcollections , below command will print all files in the folders and sub folders

for /d %x in (*) do ( dir  "%x" /b )
prudviraj
  • 3,634
  • 2
  • 16
  • 22
  • I'm pretty sure the OP does not want the `/R` option. He is only asking to list all the direct child folders, not the recursive grandchild (etc) folders. – dbenham Jul 09 '15 at 11:05
  • @ dbenham thanks for the suggestion , i have changed my answer :) – prudviraj Jul 09 '15 at 11:08