This batch command displays a tree of all subdirectories of the current directory to any level of recursion or depth.
@echo off tree
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