Quantcast
Viewing all articles
Browse latest Browse all 34890

PowerTip: Use a PowerShell 3.0 Switch to Find Only Directories

Summary: Use a switch in Windows PowerShell 3.0 to easily find only directories.

Image may be NSFW.
Clik here to view.
Hey, Scripting Guy! Question
 How can I use Windows PowerShell 3.0 to find a list of only directories from my current location?

 Image may be NSFW.
Clik here to view.
Hey, Scripting Guy! Answer
 Use the –Directory switch with the Get-ChildItem cmdlet.

Get-ChildItem -Directory

Note  The –Directory switch was added to Windows PowerShell 3.0.

Image may be NSFW.
Clik here to view.

Image may be NSFW.
Clik here to view.

Viewing all articles
Browse latest Browse all 34890

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>