Added open-calculator.ps1

This commit is contained in:
Markus Fleschutz 2021-01-09 12:46:08 +01:00
parent 77df424774
commit ff71979ba9
3 changed files with 17 additions and 0 deletions

View File

@ -46,6 +46,7 @@ make-install.ps1, installs built executables and libs to the installation direct
moon.ps1, prints the current moon phase
mute-audio.ps1, mutes audio
open-browser.ps1, starts the default Web browser
open-calculator.ps1, starts the calculator program
open-email-client.ps1, starts the default email client
play-beep.ps1, plays a beep sound
poweroff.ps1, halts the local computer (needs administrator rights)

1 Filename Description
46 moon.ps1 prints the current moon phase
47 mute-audio.ps1 mutes audio
48 open-browser.ps1 starts the default Web browser
49 open-calculator.ps1 starts the calculator program
50 open-email-client.ps1 starts the default email client
51 play-beep.ps1 plays a beep sound
52 poweroff.ps1 halts the local computer (needs administrator rights)

View File

@ -54,6 +54,7 @@ The following PowerShell scripts can be found in the [Scripts/](Scripts/) subfol
* [moon.ps1](Scripts/moon.ps1) - prints the current moon phase
* [mute-audio.ps1](Scripts/mute-audio.ps1) - mutes audio
* [open-browser.ps1](Scripts/open-browser.ps1) - starts the default Web browser
* [open-calculator.ps1](Scripts/open-calculator.ps1) - starts the calculator program
* [open-email-client.ps1](Scripts/open-browser.ps1) - starts the default email client
* [play-beep.ps1](Scripts/play-beep.ps1) - plays a beep sound
* [poweroff.ps1](Scripts/poweroff.ps1) - halts the local computer (needs administrator rights)

View File

@ -0,0 +1,15 @@
#!/snap/bin/powershell
<#
.SYNTAX ./open-calculator.ps1
.DESCRIPTION starts the calculator program
.LINK https://github.com/fleschutz/PowerShell
.NOTES Author: Markus Fleschutz / License: CC0
#>
try {
start-process calc.exe
exit 0
} catch {
write-error "ERROR in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
exit 1
}