mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-08-09 13:04:59 +02:00
Renamed folder Scripts to scripts
This commit is contained in:
19
scripts/close-three-d-viewer.ps1
Executable file
19
scripts/close-three-d-viewer.ps1
Executable file
@ -0,0 +1,19 @@
|
||||
<#
|
||||
.SYNOPSIS
|
||||
Closes the 3D-Viewer app
|
||||
.DESCRIPTION
|
||||
This PowerShell script closes the 3D-Viewer application gracefully.
|
||||
.EXAMPLE
|
||||
PS> ./close-three-d-viewer.ps1
|
||||
.LINK
|
||||
https://github.com/fleschutz/PowerShell
|
||||
.NOTES
|
||||
Author: Markus Fleschutz | License: CC0
|
||||
#>
|
||||
|
||||
TaskKill /im 3DViewer.exe /f
|
||||
if ($lastExitCode -ne "0") {
|
||||
& "$PSScriptRoot/speak-english.ps1" "Sorry, 3D Viewer isn't running."
|
||||
exit 1
|
||||
}
|
||||
exit 0 # success
|
Reference in New Issue
Block a user