0
点赞
收藏
分享

微信扫一扫

如何用CMD递归查看Windows中文件夹结构 也叫做树形结构!

倪雅各 2022-07-12 阅读 60


CMD tree /? 就可以查询用法!

代码如下:

C:\>tree /?
以图形显示驱动器或路径的文件夹结构。

TREE [drive:][path] [/F] [/A]

/F 显示每个文件夹中文件的名称。
/A 使用 ASCII 字符,而不使用扩展字符。


C:\>

如何用CMD递归查看Windows中文件夹结构 也叫做树形结构!_python


/F跟/A的区别!

如何用CMD递归查看Windows中文件夹结构 也叫做树形结构!_序列号_02

D:\pycodes>tree /A
卷 大宝宝 的文件夹 PATH 列表
卷序列号为 6EE8-9B4D
D:.
\---python123demo
\---python123demo
+---spiders
| \---__pycache__
\---__pycache__

D:\pycodes>tree /F
卷 大宝宝 的文件夹 PATH 列表
卷序列号为 6EE8-9B4D
D:.
└─python123demo
│ scrapy.cfg

└─python123demo
│ items.py
│ middlewares.py
│ pipelines.py
│ settings.py
│ __init__.py

├─spiders
│ │ __init__.py
│ │
│ └─__pycache__
└─__pycache__

D:\pycodes>


举报

相关推荐

0 条评论