Quantcast
Channel: Windows PowerShell forum
Viewing all articles
Browse latest Browse all 21975

get-childitem to list directories, but only if they have an extension

$
0
0

I know how to use GCI. I know how to use it to list directories only, but how can I use it to list directories that have an extension?

I'm guessing it's going to be something along the lines of

gci -Directory | Where-Object {$_.Extension -eq $true }

But that doesn't work.


zarberg@gmail.com


Viewing all articles
Browse latest Browse all 21975

Trending Articles



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