mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-08-18 08:30:00 +02:00
Updated the manuals
This commit is contained in:
@@ -37,7 +37,7 @@ Example
|
||||
-------
|
||||
```powershell
|
||||
PS> ./check-drive-space.ps1 C
|
||||
✅ Drive C: uses 56% of 1TB - 442GB free
|
||||
✅ Drive C: uses 56% of 1TB: 442GB free
|
||||
|
||||
```
|
||||
|
||||
@@ -63,7 +63,7 @@ Script Content
|
||||
Specifies the minimum level in bytes (10GB by default)
|
||||
.EXAMPLE
|
||||
PS> ./check-drive-space.ps1 C
|
||||
✅ Drive C: uses 56% of 1TB - 442GB free
|
||||
✅ Drive C: uses 56% of 1TB: 442GB free
|
||||
.LINK
|
||||
https://github.com/fleschutz/PowerShell
|
||||
.NOTES
|
||||
@@ -103,7 +103,7 @@ try {
|
||||
Write-Host "⚠️ Drive $driveName with $(Bytes2String $total) is nearly full, $(Bytes2String $free) free"
|
||||
} else {
|
||||
[int64]$percent = ($used * 100) / $total
|
||||
Write-Host "✅ Drive $driveName uses $percent% of $(Bytes2String $total) - $(Bytes2String $free) free"
|
||||
Write-Host "✅ Drive $driveName uses $percent% of $(Bytes2String $total): $(Bytes2String $free) free"
|
||||
}
|
||||
exit 0 # success
|
||||
} catch {
|
||||
@@ -112,4 +112,4 @@ try {
|
||||
}
|
||||
```
|
||||
|
||||
*(page generated by convert-ps2md.ps1 as of 05/12/2025 22:02:52)*
|
||||
*(page generated by convert-ps2md.ps1 as of 06/22/2025 10:37:34)*
|
||||
|
Reference in New Issue
Block a user