How does Win10 turn a folder tree into text?

  
                

The folder directory in the Win10 system shows the directory tree, so it is more convenient to access the folder above the directory tree. However, if you want to extract the path of the folder into text, it is more difficult. The following small series will introduce you to the technique of turning the folder directory tree into text with Win10.

Operation method:

1. Two internal commands to get the file "Twigs"

If we need to turn the directory frame on the left side of the Explorer into a text File, you can use the TREE command in the command prompt window. TREE's original meaning is "tree", which is also very visual and easy to remember.

Now we want to generate a list of directory tree texts for the C partition. First click on the C: drive letter in the list on the left side of the file explorer, then click on the “file“ menu click “open the command prompt &rarr ;Open a command prompt as an administrator”. The current location of the command prompt window that opens is exactly the root of the C: partition. At this time, the TREE command is issued here, and the directory tree displayed by scrolling can be seen in the window.

Such a directory tree is just in the display state. We can add a half-width greater than the TREE command, and then enter a file name to form a command like "TREE" CLIST.TXT” This will get a CLIST.TXT file in the root directory of the C: drive, which is the file directory tree of the C: partition with a tree structure.



Tip:

The reason why not choose & ldquo; & rdquo ;, open a command prompt is a problem because the level of write access. If you select “Open Command Prompt", the system will give an error message "Deny access" when writing the command. In this case, only the output command can be redirected to a partition other than the system partition.

Tips:

If you want to make this <quo;[>; &#>>>>>>> On the above, you can change the above command to "TREE" CLIST.TXT /F & rdquo;, only add a /F parameter to solve the problem.

The method for generating the file list on the right side is similar to the method for generating the directory. Just release the “DIR /S/ON/B ” CFILES.TXT” command. This will give you a pure file list text that is completely sorted by file name and contains files from all levels of subfolders.

2. the other party tool to get a list of file output

Explorer using third-party alternatives can generate a list of files resources files directly. For example, using the xplorer2 file browser, after selecting all the folders to be generated, click the “edit →copy name” command or “copy column” command, then paste in the text file, you can Get a list of folders with or without paths.


Previous 12 Next Total 2

Copyright © Windows knowledge All Rights Reserved