Add open-snipping-tool.ps1 and close-snipping-tool.ps1

This commit is contained in:
Markus Fleschutz
2021-10-23 16:53:41 +02:00
parent 7bdaef5002
commit ba17c231db
6 changed files with 86 additions and 0 deletions

15
Scripts/close-snipping-tool.ps1 Executable file
View File

@ -0,0 +1,15 @@
<#
.SYNOPSIS
Closes the Snipping Tool
.DESCRIPTION
This script closes the Snipping Tool application gracefully.
.EXAMPLE
PS> ./close-snipping-tool
.NOTES
Author: Markus Fleschutz · License: CC0
.LINK
https://github.com/fleschutz/PowerShell
#>
& "$PSScriptRoot/close-program.ps1" "Snipping Tool" "SnippingTool.exe" ""
exit 0 # success

15
Scripts/open-snipping-tool.ps1 Executable file
View File

@ -0,0 +1,15 @@
<#
.SYNOPSIS
Starts the Snipping Tool
.DESCRIPTION
This script starts the Snipping Tool application.
.EXAMPLE
PS> ./open-snipping-tool
.NOTES
Author: Markus Fleschutz · License: CC0
.LINK
https://github.com/fleschutz/PowerShell
#>
Start-Process SnippingTool.exe
exit 0 # success