How do i get a list of folders and sub folders without the files?

前端 未结 6 1364
[愿得一人]
[愿得一人] 2020-12-04 07:26

I am trying to print a list of the folders and sub folders of a directory to a file.

When I run dir

6条回答
  •  醉酒成梦
    2020-12-04 07:58

    I used dir /s /b /o:n /a:d, and it worked perfectly, just make sure you let the file finish writing, or you'll have an incomplete list.

提交回复
热议问题