I get the following from PowerShell:
PS Y:> dir -Directory -Recurse | where {($_ | dir).Count -eq 0} | rmdir
Get-ChildItem : A parameter cannot be found that matches parameter name 'Directory'.
At line:1 char:15
- dir -Directory <<<< -Recurse | where {($_ | dir).Count -eq 0} | rmdir
+ CategoryInfo : InvalidArgument: (:) [Get-ChildItem], ParameterBindingException
+ FullyQualifiedErrorId : NamedParameterNotFound,Microsoft.PowerShell.Commands.GetChildItemCommand
Please let me know what I did wrong. Running Windows 7 Ultimate SP1.
Thank You!-)