Renamed to open-notepad.exe and close-notepad.exe

This commit is contained in:
Markus Fleschutz
2024-05-29 18:28:42 +02:00
parent e447641434
commit 32347ab51d
3 changed files with 26 additions and 26 deletions

20
scripts/open-notepad.ps1 Executable file
View File

@ -0,0 +1,20 @@
<#
.SYNOPSIS
Launches the Notepad app
.DESCRIPTION
This PowerShell script launches the Notepad application.
.EXAMPLE
PS> ./open-notepad.ps1
.LINK
https://github.com/fleschutz/PowerShell
.NOTES
Author: Markus Fleschutz | License: CC0
#>
try {
Start-Process notepad.exe
exit 0 # success
} catch {
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
exit 1
}