mirror of
https://github.com/fleschutz/PowerShell.git
synced 2024-11-23 08:23:14 +01:00
Update check-drives.ps1
This commit is contained in:
parent
ee6ae12f5e
commit
a35caa680f
@ -7,7 +7,7 @@
|
||||
Specifies the minimum level in Gigabyte
|
||||
.EXAMPLE
|
||||
PS> ./check-drives
|
||||
✔️ Drive C has 172G left (233G total)
|
||||
✔️ Drive C has 172GB left (233GB total)
|
||||
.LINK
|
||||
https://github.com/fleschutz/PowerShell
|
||||
.NOTES
|
||||
@ -27,7 +27,7 @@ try {
|
||||
if ($Free -lt $MinLevel) {
|
||||
$Reply = "Drive $($Drive.Name) has only $Free GB left to use! ($Used of $Total GB used, minimum is $MinLevel GB)"
|
||||
} else {
|
||||
$Reply = "Drive $($Drive.Name) has $($Free)G left ($($Total)G total)"
|
||||
$Reply = "Drive $($Drive.Name) has $($Free)GB left ($($Total)GB total)"
|
||||
}
|
||||
"✔️ $Reply"
|
||||
& "$PSScriptRoot/speak-english.ps1" "$Reply"
|
||||
|
Loading…
Reference in New Issue
Block a user