A project tool: the folder and all subfolders to export files in a tree structure

1 run cmd, enter the dos interface.

2, enter the command (assuming you want to export the folder is D drive temp directory):

cd d: \ temp // folder into the directory you want to generate

tree / f >> d: \ tree.txt // save the tree structure of files within the current folder to d: \ tree.txt file

Enter three lines of command like this, then the D drive all the files in the temp folder inside the folder name and file name appear in the tree.txt file in the root directory of the D.

 

Example:

Volume Project Folder PATH listing
volume serial number B0D0-5C2E
E :.
│ OrganizationBaseController.java

└─doraemon-Project
│ .gitignore
│ doraemon-project.iml
│ pom.xml
│ README.md

├─.idea
│ compiler.xml │
│ │ encodings.xml
│ │ misc.xml
│ │ modules.xml
│ │ vcs.xml
│ │ workspace.xml
│ │
│ └─libraries
│ Maven__ch_qos_logback_logback_classic_1_2_3.xml
│ Maven__ch_qos_logback_logback_core_1_2_3.xml
│ Maven__cn_hutool_hutool_all_4_5_9.xml
│ Maven__commons_beanutils_commons_beanutils_1_9_3. xml
│ Maven__commons_codec_commons_codec_1_11.xml

Guess you like

Origin www.cnblogs.com/breka/p/12220778.html