Since I didn’t found complete answer here. Here it is:
Windows CMD doesn’t support -L
depth levels.
- Install CygWin https://www.cygwin.com.
- In Cygwin make sure you pick Utilities / Tree package installed.
- Open CygWin and navigate to your folder, like cd
../../cygdrive/c/myFolder
. - List tree structure and save as result.txt
tree -L 3 >result.txt
.