Find Empty Folders


/ Published in: Windows PowerShell
Save to your folder(s)



Copy this code and paste it in your HTML
  1. Get-ChildItem y:\ –recurse | Where-Object {$_.PSIsContainer -eq $True -and $_.GetFiles().Count -eq 0} | Select-Object Name,FullName

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.