PowerTip: View Directory List as Tree by Using PowerShell

PowerTip: View Directory List as Tree by Using PowerShell

  • Comments 2
  • Likes

Summary:  Learn how to view a directory in a tree view by using Windows PowerShell.

Hey, Scripting Guy! Question How can I use Windows PowerShell to easily view a directory list as a tree view?

Hey, Scripting Guy! Answer Use the Show-Tree cmdlet from the PowerShell Community Extension Project:

Show-Tree e:\data –depth 2

Note  For information about obtaining and installiing the free PSCX modules,
see these Hey, Scripting Guy! Blog posts.

Your comment has been posted.   Close
Thank you, your comment requires moderation so it may take a while to appear.   Close
Leave a Comment
  • If simply a tree is needed, the tree.exe can be used as well. This is not a PowerShell way though.

  • thank you