powershell: retrieving directories in the current path
hard -- obscure if you don't know the calls, aren't familiar with programming (basically, me)
[io.directory]::GetDirectories($(get-location))medium -- not so bad when you know what to look for
get-childitem | where-object { $_.mode -eq "D----" }get-childitem | where-object { $_.PSISContainer -eq $true }
get-childitem | where-object { $_.Attributes -eq 'Directory' }
Comments
Post a Comment