mirror of
https://github.com/fleschutz/PowerShell.git
synced 2024-11-23 00:13:36 +01:00
Update close-microsoft-edge.ps1
This commit is contained in:
parent
3978a8d1a6
commit
23d02c432e
@ -11,8 +11,8 @@
|
|||||||
https://github.com/fleschutz/PowerShell
|
https://github.com/fleschutz/PowerShell
|
||||||
#>
|
#>
|
||||||
|
|
||||||
$result = TaskKill /im msedge.exe
|
TaskKill /im msedge.exe /f /t
|
||||||
if ($result -ne 0) {
|
if ($lastExitCode -ne "0") {
|
||||||
& "$PSScriptRoot/speak-english.ps1" "Sorry, can't close Microsoft Edge"
|
& "$PSScriptRoot/speak-english.ps1" "Sorry, can't close Microsoft Edge"
|
||||||
exit 1
|
exit 1
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user