Added more play* scripts

This commit is contained in:
Markus Fleschutz
2021-02-16 19:43:46 +01:00
parent ba6dedd798
commit 0c51ca75e3
8 changed files with 127 additions and 11 deletions

View File

@ -12,9 +12,9 @@ try {
if ($DirTree -eq "" ) {
$DirTree = read-host "Enter the path to the directory tree"
}
write-progress "Listing empty files in $DirTree ..."
[int]$Count = 0
Get-ChildItem $DirTree -recurse | Where {$_.PSIsContainer -eq $false} | Where {$_.Length -eq 0} | ForEach-Object {
write-progress "Listing empty files in $DirTree ..."
get-childItem $DirTree -recurse | where {$_.PSIsContainer -eq $false} | where {$_.Length -eq 0} | foreach-object {
write-output $_.FullName
$Count++
}