Quantcast
Channel: Hey, Scripting Guy! Blog
Viewing all articles
Browse latest Browse all 3333

PowerTip: Use PowerShell to List Only Directories

$
0
0

Summary: Learn how to use Windows PowerShell to show all directories.

Hey, Scripting Guy! Question How can I use Windows PowerShell to list ONLY directories in a folder structure?

Hey, Scripting Guy! Answer Use Get-ChildItem on the target folder and specify the Directory parameter:

Get-ChildItem C:\Foo –recurse -directory


Viewing all articles
Browse latest Browse all 3333

Trending Articles