CMD tree command limit number of levels

前端 未结 6 934
盖世英雄少女心
盖世英雄少女心 2021-02-07 04:18

How do I limit the number of levels that the tree command goes through in Windows? I need to output the results to a text file for work, but because by default the tree command

6条回答
  •  长发绾君心
    2021-02-07 05:12

    You can try this project on Windows :

    https://github.com/MrRaindrop/tree-cli

    Usage:

    use -l levelNumber to specify the path level:

    treee -l 2

提交回复
热议问题