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

前端 未结 6 1365
[愿得一人]
[愿得一人] 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 08:20

    I don't have enough reputation to comment on any answer. In one of the comments, someone has asked how to ignore the hidden folders in the list. Below is how you can do this.

    dir /b /AD-H
    

提交回复
热议问题