How To Create a Folder Tree in Windows

Source: How to create a Folder Tree in Windows 10? (thewindowsclub.com)

Commands

# xls
CMD /c "Tree /F /A > tree.xls"

# excel xlsx
CMD /c "Tree /F /A > tree.xlsx"

# text
CMD /c "Tree /F /A > tree.txt"

# copy to clipboard
CMD /c "Tree /F /A | clip"

Create a Folder Tree in Windows 10

File Explorer helps to view or open files quickly in Windows 10 system. Users can steer through the directories using back, forward, up menus, navigation menus, directly entering the location in the address bar and scrolling over left or right panes.

But there are no ways Windows Explorer, lets you understand the entire structure of a directory. If you have spent an absurd amount of time scrolling through hundreds of files trying to spot the one you want, then a Folder Tree could make a difference. We already mentioned, that there is no direct way of viewing the folders/ files in a Tree format in Windows Explorer. Here a ‘Tree command’ could work.

The tree command can make it very simple for you to trace files and folders using the command line. You can view how a directory on your system is structured and where every file is located. Let’s see how to do this.

1] Press Win + E keys to open the File Explorer and navigate to the target file folder for which you want to create a Folder Tree.

Please note – In our case, we selected the C:\Drivers folder.

2] In the address bar, copy-paste the below command:

CMD /c "Tree /F /A > test.xls"

Folder Tree

Explaining the composition of Tree Command – CMD /c “Tree /F /A > test.xls”

3] Press ‘Enter’.

Folder Tree

This will create a new folder tree file name ‘Test’ in the C:\Drivers folder.

Double-click on the file and you will be able to see the structured tree format of all files.

Create a Folder Tree in Windows 10

A Folder tree can be created for any specific folder on Windows 10. So, if the folder is located in ‘F:\test’ then the command should be altered to the following command:

cmd /c "tree F:\test /f /a > Test.xls"

This simple tree command gives us a complete view of the directory on Windows 10. In no time at all, you will be able to create a folder tree that will not only give your files excellent organization but also keep your Windows files within easy reach.

Folder Tree


Links: [[Windows]] | [[Tips and Tricks]]

Sources: How to create a Folder Tree in Windows 10? (thewindowsclub.com)