PowerTip: Use PowerShell to Return Directory Information


Summary: Use Windows PowerShell to return directory information.

Hey, Scripting Guy! Question How can I use Windows PowerShell to provide information about directories in a specific location?

Hey, Scripting Guy! Answer Use the Get-ChildItem cmdlet, specific the path and use the –Directory switch, for example:

Get-ChildItem e:\data -Directory

Comments (0)

Skip to main content