mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-08-19 08:52:05 +02:00
Updated the manuals
This commit is contained in:
@@ -28,7 +28,7 @@ Example
|
||||
```powershell
|
||||
PS> ./list-empty-dirs.ps1 C:\Windows
|
||||
...
|
||||
✅ Found 39972 empty directories within 📂C:\Windows in 222 sec
|
||||
✅ Found 39972 empty directories within 📂C:\Windows in 222s.
|
||||
|
||||
```
|
||||
|
||||
@@ -45,7 +45,7 @@ Script Content
|
||||
```powershell
|
||||
<#
|
||||
.SYNOPSIS
|
||||
Lists all empty directories in a directory tree
|
||||
Lists empty directories in a directory tree
|
||||
.DESCRIPTION
|
||||
This PowerShell script scans a directory tree and lists all empty directories.
|
||||
.PARAMETER path
|
||||
@@ -53,7 +53,7 @@ Script Content
|
||||
.EXAMPLE
|
||||
PS> ./list-empty-dirs.ps1 C:\Windows
|
||||
...
|
||||
✅ Found 39972 empty directories within 📂C:\Windows in 222 sec
|
||||
✅ Found 39972 empty directories within 📂C:\Windows in 222s.
|
||||
.LINK
|
||||
https://github.com/fleschutz/PowerShell
|
||||
.NOTES
|
||||
@@ -73,8 +73,8 @@ try {
|
||||
$count++
|
||||
}
|
||||
Write-Progress -completed " "
|
||||
[int]$Elapsed = $stopWatch.Elapsed.TotalSeconds
|
||||
"✅ Found $count empty directories within 📂$path in $elapsed sec"
|
||||
[int]$elapsed = $stopWatch.Elapsed.TotalSeconds
|
||||
"✅ Found $count empty directories within 📂$path in $($elapsed)s."
|
||||
exit 0 # success
|
||||
} catch {
|
||||
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
|
||||
@@ -82,4 +82,4 @@ try {
|
||||
}
|
||||
```
|
||||
|
||||
*(page generated by convert-ps2md.ps1 as of 05/12/2025 22:02:55)*
|
||||
*(page generated by convert-ps2md.ps1 as of 06/22/2025 10:37:37)*
|
||||
|
Reference in New Issue
Block a user