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