PowerTip: View Directory List as Tree by Using PowerShell


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.

Comments (3)

  1. Bjorn Houben says:

    If simply a tree is needed, the tree.exe can be used as well. This is not a PowerShell way though.

  2. Sajib Ahmed says:

    I like your blog very much.I think it is very useful to us http://www.websourcezone.com

Skip to main content