mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-08-15 07:12:44 +02:00
Improved the scripts
This commit is contained in:
@ -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 {
|
||||
|
Reference in New Issue
Block a user