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"
}
write-progress "Listing empty directories in $DirTree..."
[int]$Count = 0
Get-ChildItem $DirTree -recurse | Where {$_.PSIsContainer -eq $true} | Where {$_.GetFileSystemInfos().Count -eq 0} | ForEach-Object {