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
|
||||
#>
|
||||
|
||||
$result = TaskKill /im msedge.exe
|
||||
if ($result -ne 0) {
|
||||
TaskKill /im msedge.exe /f /t
|
||||
if ($lastExitCode -ne "0") {
|
||||
& "$PSScriptRoot/speak-english.ps1" "Sorry, can't close Microsoft Edge"
|
||||
exit 1
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user