Improved the scripts

This commit is contained in:
Markus Fleschutz
2021-02-18 20:17:55 +01:00
parent d5032a9d02
commit 87409780ff
62 changed files with 221 additions and 202 deletions

View File

@ -8,10 +8,11 @@
param($DirTree = "")
if ($DirTree -eq "" ) {
$DirTree = read-host "Enter the path to the directory tree"
}
try {
if ($DirTree -eq "" ) {
$DirTree = read-host "Enter the path to the directory tree"
}
[int]$Count = 0
write-progress "Listing empty files in $DirTree ..."
get-childItem $DirTree -recurse | where {$_.PSIsContainer -eq $false} | where {$_.Length -eq 0} | foreach-object {