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:
- Navigate into the folder in file explorer.
- Press Shift, right-click mouse, and select "Open command window here".
- Type
tree /f /a > tree.txt
and press Enter.
- 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.