Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Tree view of a directory/folder in Windows? [closed]

In Linux/KDE, I can see a directory as a tree. How can I do it in Windows 7?

Consider I do NOT mean "Windows Explorer". This just shows the directories, I also want the files.

like image 220
Pietro Avatar asked Mar 01 '12 15:03

Pietro


People also ask

What is a folder tree in Windows?

The folders tree on the left of the the Files and folders page defines the layout of the folders on the target system.

How do I show folder trees in Windows 7?

To restore the classic navigation tree, open Windows Explorer, click Organize, and select Folder and search options from the drop-down menu. On the General tab on the Folder Options dialog box, select the Show all folders check box in the Navigation pane box so there is a check mark in the box.


2 Answers

In the Windows command prompt you can use "tree /F" to view a tree of the current folder and all descending files & folders.

In File Explorer under Windows 8.1:

  • Select folder
  • Press Shift, right-click mouse, and select "Open command window here"
  • Type tree /f > tree.txt and press Enter
  • Use MS Word to open "tree.txt"
  • The dialog box "File Conversion - tree.txt" will open
  • For "Text encoding" tick the "MS-DOS" option

You now have an editable tree structure file.

This works for versions of Windows from Windows XP to Windows 8.1.

like image 87
Janek Avatar answered Oct 03 '22 23:10

Janek


tree /f /a

About

The Windows command tree /f /a produces a tree of the current folder and all files & folders contained within it in ASCII format.

The output can be redirected to a text file using the > parameter.

Method

For Windows 8.1 or Windows 10, follow these steps:

  1. Navigate into the folder in file explorer.
  2. Press Shift, right-click mouse, and select "Open command window here".
  3. Type tree /f /a > tree.txt and press Enter.
  4. Open the new tree.txt file in your favourite text editor/viewer.

Note: Windows 7, Vista, XP and earlier users can type cmd in the run command box in the start menu for a command window.

like image 36
WonderWorker Avatar answered Oct 04 '22 00:10

WonderWorker