mirror of
https://github.com/fleschutz/PowerShell.git
synced 2024-11-22 16:03:22 +01:00
Added open-calculator.ps1
This commit is contained in:
parent
77df424774
commit
ff71979ba9
@ -46,6 +46,7 @@ make-install.ps1, installs built executables and libs to the installation direct
|
|||||||
moon.ps1, prints the current moon phase
|
moon.ps1, prints the current moon phase
|
||||||
mute-audio.ps1, mutes audio
|
mute-audio.ps1, mutes audio
|
||||||
open-browser.ps1, starts the default Web browser
|
open-browser.ps1, starts the default Web browser
|
||||||
|
open-calculator.ps1, starts the calculator program
|
||||||
open-email-client.ps1, starts the default email client
|
open-email-client.ps1, starts the default email client
|
||||||
play-beep.ps1, plays a beep sound
|
play-beep.ps1, plays a beep sound
|
||||||
poweroff.ps1, halts the local computer (needs administrator rights)
|
poweroff.ps1, halts the local computer (needs administrator rights)
|
||||||
|
|
@ -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
|
* [moon.ps1](Scripts/moon.ps1) - prints the current moon phase
|
||||||
* [mute-audio.ps1](Scripts/mute-audio.ps1) - mutes audio
|
* [mute-audio.ps1](Scripts/mute-audio.ps1) - mutes audio
|
||||||
* [open-browser.ps1](Scripts/open-browser.ps1) - starts the default Web browser
|
* [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
|
* [open-email-client.ps1](Scripts/open-browser.ps1) - starts the default email client
|
||||||
* [play-beep.ps1](Scripts/play-beep.ps1) - plays a beep sound
|
* [play-beep.ps1](Scripts/play-beep.ps1) - plays a beep sound
|
||||||
* [poweroff.ps1](Scripts/poweroff.ps1) - halts the local computer (needs administrator rights)
|
* [poweroff.ps1](Scripts/poweroff.ps1) - halts the local computer (needs administrator rights)
|
||||||
|
15
Scripts/open-calculator.ps1
Normal file
15
Scripts/open-calculator.ps1
Normal 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
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user