i would like to list all the directories down to a specified level with the Tree command. I like the way the Tree command sorts and uses the ASCII to show the directories or folders, and all the folders within those folders.
This is what i have so far. I would like to modify this command with like -Depth 2 or something like that. This command as it stands works great for listing all the directories but i only want them down to a certain level. I hope this helps you help me:)
Tree | Select-Object -Skip 2 | Set-Content list20.txt