mirror of
https://github.com/fleschutz/PowerShell.git
synced 2024-11-21 23:43:25 +01:00
Update close-calculator.ps1
This commit is contained in:
parent
5137757500
commit
c361acb66e
@ -11,9 +11,5 @@
|
||||
Author: Markus Fleschutz | License: CC0
|
||||
#>
|
||||
|
||||
TaskKill /im Calculator.exe /f /t
|
||||
if ($lastExitCode -ne "0") {
|
||||
& "$PSScriptRoot/speak-english.ps1" "Sorry, calculator isn't running."
|
||||
exit 1
|
||||
}
|
||||
Stop-Process -name "CalculatorApp"
|
||||
exit 0 # success
|
||||
|
Loading…
Reference in New Issue
Block a user