From e9a860bc3cd56602b914c7aa77fd657939966793 Mon Sep 17 00:00:00 2001 From: Markus Fleschutz <markus.fleschutz@atcsim.de> Date: Tue, 9 Nov 2021 09:19:14 +0100 Subject: [PATCH] Add open-paint-3d.ps1 and close-paint-3d.ps1 --- Scripts/close-paint-3d.ps1 | 15 +++++++++++++++ ...open-microsoft-paint.ps1 => open-paint-3d.ps1} | 6 +++--- 2 files changed, 18 insertions(+), 3 deletions(-) create mode 100644 Scripts/close-paint-3d.ps1 rename Scripts/{open-microsoft-paint.ps1 => open-paint-3d.ps1} (72%) diff --git a/Scripts/close-paint-3d.ps1 b/Scripts/close-paint-3d.ps1 new file mode 100644 index 00000000..2e781f1c --- /dev/null +++ b/Scripts/close-paint-3d.ps1 @@ -0,0 +1,15 @@ +<# +.SYNOPSIS + Closes the Paint 3D app +.DESCRIPTION + This script closes the Paint 3D application gracefully. +.EXAMPLE + PS> ./close-paint-3d +.NOTES + Author: Markus Fleschutz · License: CC0 +.LINK + https://github.com/fleschutz/PowerShell +#> + +taskkill /im Paint3D +exit 0 # success diff --git a/Scripts/open-microsoft-paint.ps1 b/Scripts/open-paint-3d.ps1 similarity index 72% rename from Scripts/open-microsoft-paint.ps1 rename to Scripts/open-paint-3d.ps1 index 5f267721..93ce7f31 100755 --- a/Scripts/open-microsoft-paint.ps1 +++ b/Scripts/open-paint-3d.ps1 @@ -1,10 +1,10 @@ <# .SYNOPSIS - Launches the Microsoft Paint app + Launches the Paint 3D app .DESCRIPTION - This script launches the Microsoft Paint application. + This script launches the Paint 3D application. .EXAMPLE - PS> ./open-microsoft-paint + PS> ./open-paint-3d .NOTES Author: Markus Fleschutz · License: CC0 .LINK