Generate disk file list with Tree command

xiaoxiao2021-03-05  24

Command prototype:

D: /> TREE /?

The folder structure of the driver or path is displayed in a graph.

Tree [Drive:] [PATH] [/ f] [/ A]

/ F Displays the name of the file in each folder.

/ A uses ASCII characters without using extended characters.

Application examples:

1. If you want to generate a list of disks, enter the following command:

E:

Tree> e.txt

You can generate a folder list of the entire disk; if you enter the following command:

E:

Tree / f> e.txt

2. If you want to generate a list of files for a folder, enter the following command:

For example, want to generate a list of files under the Tools folder under the E disk:

E:

Tree Tools> Tools.txt

Tree Tooos / F> Tools1.txt

or:

E:

CD Tools

E: / Tools> Tree> Tools.txt

E: / Tools> Tree / f> Tools.txt

转载请注明原文地址:https://www.9cbs.com/read-33159.html

New Post(0)