March 1st, 2015

PowerTip: Use PowerShell to Return Directory Information

Doctor Scripto
Scripter

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

Author

The "Scripting Guys" is a historical title passed from scripter to scripter. The current revision has morphed into our good friend Doctor Scripto who has been with us since the very beginning.

0 comments

Discussion are closed.

Feedback