mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-02-22 20:51:17 +01:00
Improve the scripts
This commit is contained in:
parent
23d02c432e
commit
7649f8fe2f
@ -11,8 +11,8 @@
|
||||
https://github.com/fleschutz/PowerShell
|
||||
#>
|
||||
|
||||
$result = TaskKill /im Calculator.exe /f /t
|
||||
if ($result -ne 0) {
|
||||
TaskKill /im Calculator.exe /f /t
|
||||
if ($lastExitCode -ne "0") {
|
||||
& "$PSScriptRoot/speak-english.ps1" "Sorry, can't close calculator"
|
||||
exit 1
|
||||
}
|
||||
|
@ -11,8 +11,8 @@
|
||||
https://github.com/fleschutz/PowerShell
|
||||
#>
|
||||
|
||||
$result = TaskKill /im GitExtensions.exe
|
||||
if ($result -ne 0) {
|
||||
TaskKill /im GitExtensions.exe
|
||||
if ($lastExitCode -ne "0") {
|
||||
& "$PSScriptRoot/speak-english.ps1" "Sorry, can't close Git Extensions"
|
||||
exit 1
|
||||
}
|
||||
|
@ -11,8 +11,8 @@
|
||||
https://github.com/fleschutz/PowerShell
|
||||
#>
|
||||
|
||||
$result = TaskKill /im outlook.exe
|
||||
if ($result -ne 0) {
|
||||
TaskKill /im outlook.exe
|
||||
if ($lastExitCode -ne "0") {
|
||||
& "$PSScriptRoot/speak-english.ps1" "Sorry, can't close Microsoft Outlook"
|
||||
exit 1
|
||||
}
|
||||
|
@ -11,8 +11,8 @@
|
||||
https://github.com/fleschutz/PowerShell
|
||||
#>
|
||||
|
||||
$result = TaskKill /im mspaint.exe
|
||||
if ($result -ne 0) {
|
||||
TaskKill /im mspaint.exe
|
||||
if ($lastExitCode -ne "0") {
|
||||
& "$PSScriptRoot/speak-english.ps1" "Sorry, can't close Microsoft Paint"
|
||||
exit 1
|
||||
}
|
||||
|
@ -11,8 +11,8 @@
|
||||
https://github.com/fleschutz/PowerShell
|
||||
#>
|
||||
|
||||
$result = TaskKill /im WinStore.App.exe /f /t
|
||||
if ($result -ne 0) {
|
||||
TaskKill /im WinStore.App.exe /f /t
|
||||
if ($lastExitCode -ne "0") {
|
||||
& "$PSScriptRoot/speak-english.ps1" "Sorry, can't close Microsoft Store"
|
||||
exit 1
|
||||
}
|
||||
|
@ -11,8 +11,8 @@
|
||||
https://github.com/fleschutz/PowerShell
|
||||
#>
|
||||
|
||||
$result = TaskKill /im thunderbird.exe
|
||||
if ($result -ne 0) {
|
||||
TaskKill /im thunderbird.exe
|
||||
if ($lastExitCode -ne "0") {
|
||||
& "$PSScriptRoot/speak-english.ps1" "Sorry, can't close Mozilla Thunderbird"
|
||||
exit 1
|
||||
}
|
||||
|
@ -11,8 +11,8 @@
|
||||
https://github.com/fleschutz/PowerShell
|
||||
#>
|
||||
|
||||
$result = TaskKill /im obs64.exe
|
||||
if ($result -ne 0) {
|
||||
TaskKill /im obs64.exe
|
||||
if ($lastExitCode -ne "0") {
|
||||
& "$PSScriptRoot/speak-english.ps1" "Sorry, can't close OBS Studio"
|
||||
exit 1
|
||||
}
|
||||
|
@ -11,8 +11,8 @@
|
||||
https://github.com/fleschutz/PowerShell
|
||||
#>
|
||||
|
||||
$result = TaskKill /f /im CalendarApp.Gui.Win10.exe
|
||||
if ($result -ne 0) {
|
||||
TaskKill /f /im CalendarApp.Gui.Win10.exe
|
||||
if ($lastExitCode -ne "0") {
|
||||
& "$PSScriptRoot/speak-english.ps1" "Sorry, can't close OneCalendar"
|
||||
exit 1
|
||||
}
|
||||
|
@ -11,8 +11,8 @@
|
||||
https://github.com/fleschutz/PowerShell
|
||||
#>
|
||||
|
||||
$result = TaskKill /im PaintStudio.View.exe /f
|
||||
if ($result -ne 0) {
|
||||
TaskKill /im PaintStudio.View.exe /f
|
||||
if ($lastExitCode -ne "0") {
|
||||
& "$PSScriptRoot/speak-english.ps1" "Sorry, can't close Paint 3D"
|
||||
exit 1
|
||||
}
|
||||
|
@ -11,8 +11,8 @@
|
||||
https://github.com/fleschutz/PowerShell
|
||||
#>
|
||||
|
||||
$result = TaskKill /im 3DViewer.exe /f
|
||||
if ($result -ne 0) {
|
||||
TaskKill /im 3DViewer.exe /f
|
||||
if ($lastExitCode -ne "0") {
|
||||
& "$PSScriptRoot/speak-english.ps1" "Sorry, can't close 3D Viewer"
|
||||
exit 1
|
||||
}
|
||||
|
@ -11,8 +11,8 @@
|
||||
https://github.com/fleschutz/PowerShell
|
||||
#>
|
||||
|
||||
$result = TaskKill /im devenv.exe
|
||||
if ($result -ne 0) {
|
||||
TaskKill /im devenv.exe
|
||||
if ($lastExitCode -ne "0") {
|
||||
& "$PSScriptRoot/speak-english.ps1" "Sorry, can't close Visual Studio"
|
||||
exit 1
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user