您的位置:首页 > 其它

Windows批处理生成目录树

2012-12-17 17:52 127 查看
  1. I:\mongodb>help tree  
  2. 以图形显示驱动器或路径的文件夹结构。  
  3.  
  4. TREE [drive:][path] [/F] [/A]  
  5.  
  6.    /F   显示每个文件夹中文件的名称。  
  7.    /A   使用 ASCII 字符,而不使用扩展字符。 

例如:

  1. C:\Windows\System32>tree /F c:\windows\logs  
  2. 卷 OS 的文件夹 PATH 列表  
  3. 卷序列号为 A08E-B730  
  4. C:\WINDOWS\LOGS  
  5. │  DirectX.log  
  6. │  
  7. ├─CBS  
  8. │      cbs.bld  
  9. │      CBS.log  
  10. │      CbsPersist_20120112142038.cab  
  11. │      CbsPersist_20120216023152.cab  
  12. │      CbsPersist_20120314044937.cab  
  13. │      CbsPersist_20120412051837.cab  
  14. │      CbsPersist_20120518010233.cab  
  15. │      FilterList.log  
  16. │  
  17. ├─DISM  
  18. │      dism.log  
  19. │  
  20. ├─DPX  
  21. │      setupact.log  
  22. │      setuperr.log  
  23. │  
  24. ├─HomeGroup  
  25. └─SystemRestore 
  阅读更多
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: