Batch Script - TREE



This batch command displays a tree of all subdirectories of the current directory to any level of recursion or depth.

Syntax

Tree

Example

@echo off 
tree

Output

The above command will display the tree structure of the current directory. Following is an example of the output.

Folder PATH listing for volume Windows8_OS
Volume serial number is E41C-6F43
C:.
├───newdir
├───newdir1
└───newdir2
batch_script_commands.htm
Advertisements