Output of tree in command prompt

后端 未结 5 1657
耶瑟儿~
耶瑟儿~ 2021-01-30 17:22

I was hoping to be able to use the

tree /F /A > \"desktop\"\\file.txt

command to output only text files. Currently as is, it outputs every

5条回答
  •  日久生厌
    2021-01-30 18:07

    Note: that tree command does not order the output by name!

    Instead you can use this approach:

    dir /b /s /ad /on c:\ > c:\file.txt
    

    Result looks like less nice but

    reference

    this solution found on Superuser by pbies

提交回复
热议问题