windows dir tree 命令

dir /ad /s /b >dir.txt 显示当前位置下所有子目录,结果如下:

 

D:\trans\Trans-Receiver-search\conf
D:\trans\Trans-Receiver-search\jdk1.5
D:\trans\Trans-Receiver-search\lib
D:\trans\Trans-Receiver-search\jdk1.5\bin
D:\trans\Trans-Receiver-search\jdk1.5\demo
D:\trans\Trans-Receiver-search\jdk1.5\include
D:\trans\Trans-Receiver-search\jdk1.5\jre
D:\trans\Trans-Receiver-search\jdk1.5\lib
D:\trans\Trans-Receiver-search\jdk1.5\sample

...

...

 

dir /a /d /s /b >dir.txt 当前目录及子目录下所有文件信息

D:\trans\Trans-Receiver-search\conf
D:\trans\Trans-Receiver-search\dir.txt
D:\trans\Trans-Receiver-search\jdk1.5
D:\trans\Trans-Receiver-search\lib
D:\trans\Trans-Receiver-search\Receiver.cmd
D:\trans\Trans-Receiver-search\Receiver.sh
D:\trans\Trans-Receiver-search\trans.log
D:\trans\Trans-Receiver-search\tree.txt
D:\trans\Trans-Receiver-search\conf\ApplicationConfigReceiver.properties
D:\trans\Trans-Receiver-search\conf\log4j.properties
D:\trans\Trans-Receiver-search\conf\versionInfo.xml
D:\trans\Trans-Receiver-search\jdk1.5\bin
D:\trans\Trans-Receiver-search\jdk1.5\COPYRIGHT
D:\trans\Trans-Receiver-search\jdk1.5\demo
D:\trans\Trans-Receiver-search\jdk1.5\include

 

tree > tree.txt 当前目录结构图如下

D:.
├─conf
├─jdk1.5
│  ├─bin
│  ├─demo
│  │  ├─applets
│  │  │  ├─Animator
│  │  │  │  ├─audio
│  │  │  │  └─images
│  │  │  │      ├─Beans
│  │  │  │      └─SimpleAnimation

你可能感兴趣的:(windows,dir)