Updated the open-*.ps1 scripts

This commit is contained in:
Markus Fleschutz
2025-07-09 15:09:20 +02:00
parent b3775f3b30
commit 6fa5a3557b
85 changed files with 234 additions and 66 deletions

View File

@ -15,6 +15,8 @@
Author: Markus Fleschutz | License: CC0
#>
#requires -version 5.1
param([string]$URL = "", [string]$text = "")
try {

View File

@ -11,6 +11,8 @@
Author: Markus Fleschutz | License: CC0
#>
#requires -version 5.1
& "$PSScriptRoot/open-file-explorer.ps1" "shell:AppsFolder"
exit 0 # success

View File

@ -11,6 +11,8 @@
Author: Markus Fleschutz | License: CC0
#>
#requires -version 5.1
try {
$TargetDir = resolve-path "$HOME/AppData/Roaming/Microsoft/Windows/Start Menu/Programs/Startup"
if (-not(test-path "$TargetDir" -pathType container)) {

View File

@ -11,6 +11,8 @@
Author: Markus Fleschutz | License: CC0
#>
#requires -version 5.1
try {
start-process bingmaps:
exit 0 # success

View File

@ -11,5 +11,7 @@
Author: Markus Fleschutz | License: CC0
#>
#requires -version 5.1
& "$PSScriptRoot/open-default-browser.ps1" "https://www.booking.com"
exit 0 # success

View File

@ -11,5 +11,7 @@
Author: Markus Fleschutz | License: CC0
#>
#requires -version 5.1
& "$PSScriptRoot/open-file-explorer.ps1" "C:"
exit 0 # success

View File

@ -11,6 +11,8 @@
Author: Markus Fleschutz | License: CC0
#>
#requires -version 5.1
try {
Start-Process ms-calculator:
exit 0 # success

View File

@ -13,6 +13,8 @@
Author: Markus Fleschutz | License: CC0
#>
#requires -version 5.1
param([string]$URL = "http://www.fleschutz.de")
try {

View File

@ -11,6 +11,8 @@
Author: Markus Fleschutz | License: CC0
#>
#requires -version 5.1
try {
Start-Process ms-clock:
exit 0 # success

View File

@ -11,6 +11,8 @@
Author: Markus Fleschutz | License: CC0
#>
#requires -version 5.1
try {
Start-Process ms-cortana2:
exit 0 # success

View File

@ -11,4 +11,6 @@
Author: Markus Fleschutz | License: CC0
#>
#requires -version 5.1
& "$PSScriptRoot/open-file-explorer.ps1" "D:"

View File

@ -15,6 +15,8 @@
Author: Markus Fleschutz | License: CC0
#>
#requires -version 5.1
param([int]$timeInterval = 120) # milliseconds
try {

View File

@ -4,12 +4,14 @@
.DESCRIPTION
This PowerShell script launches the Web browser with the DeepL Translator website.
.EXAMPLE
PS> ./open-deep-l-translator
PS> ./open-deep-l-translator.ps1
.LINK
https://github.com/fleschutz/PowerShell
.NOTES
Author: Markus Fleschutz | License: CC0
#>
#requires -version 5.1
& "$PSScriptRoot/open-default-browser.ps1" "https://www.deepl.com/translator"
exit 0 # success

View File

@ -13,6 +13,8 @@
Author: Markus Fleschutz | License: CC0
#>
#requires -version 5.1
param([string]$URL = "https://www.fleschutz.de")
try {

View File

@ -4,13 +4,15 @@
.DESCRIPTION
This PowerShell script launches the File Explorer with the user's desktop folder.
.EXAMPLE
PS> ./open-desktop-folder
PS> ./open-desktop-folder.ps1
.LINK
https://github.com/fleschutz/PowerShell
.NOTES
Author: Markus Fleschutz | License: CC0
#>
#requires -version 5.1
try {
$TargetDir = resolve-path "$HOME/Desktop"
if (-not(test-path "$TargetDir" -pathType container)) {

View File

@ -4,13 +4,15 @@
.DESCRIPTION
This PowerShell script launches the File Explorer with the user's documents folder.
.EXAMPLE
PS> ./open-documents-folder
PS> ./open-documents-folder.ps1
.LINK
https://github.com/fleschutz/PowerShell
.NOTES
Author: Markus Fleschutz | License: CC0
#>
#requires -version 5.1
try {
$TargetDir = resolve-path "$HOME/Documents"
if (-not(test-path "$TargetDir" -pathType container)) {

View File

@ -11,6 +11,8 @@
Author: Markus Fleschutz | License: CC0
#>
#requires -version 5.1
try {
if ($IsLinux) {
$Path = Resolve-Path "$HOME/Downloads"

View File

@ -11,6 +11,8 @@
Author: Markus Fleschutz | License: CC0
#>
#requires -version 5.1
try {
$TargetDirs = resolve-path "$HOME/Dropbox*"
foreach($TargetDir in $TargetDirs) {

View File

@ -11,5 +11,7 @@
Author: Markus Fleschutz | License: CC0
#>
#requires -version 5.1
& "$PSScriptRoot/open-default-browser.ps1" "https://duckduckgo.com"
exit 0 # success

View File

@ -11,4 +11,6 @@
Author: Markus Fleschutz | License: CC0
#>
#requires -version 5.1
& "$PSScriptRoot/open-file-explorer.ps1" "E:"

View File

@ -4,12 +4,14 @@
.DESCRIPTION
This PowerShell script launches the Microsoft Edge Web browser.
.EXAMPLE
PS> ./open-edge
PS> ./open-edge.ps1
.LINK
https://github.com/fleschutz/PowerShell
.NOTES
Author: Markus Fleschutz | License: CC0
#>
#requires -version 5.1
Start-Process microsoft-edge://
exit 0 # success

View File

@ -11,5 +11,7 @@
Author: Markus Fleschutz | License: CC0
#>
#requires -version 5.1
& "$PSScriptRoot/open-default-browser.ps1" "https://e.ggtimer.com"
exit 0 # success

View File

@ -11,6 +11,8 @@
Author: Markus Fleschutz | License: CC0
#>
#requires -version 5.1
try {
start-process "mailto:markus@fleschutz.de"
exit 0 # success

View File

@ -4,12 +4,14 @@
.DESCRIPTION
This PowerShell script launches the File Explorer with the F: drive folder.
.EXAMPLE
PS> ./open-f-drive
PS> ./open-f-drive.ps1
.LINK
https://github.com/fleschutz/PowerShell
.NOTES
Author: Markus Fleschutz | License: CC0
#>
#requires -version 5.1
& "$PSScriptRoot/open-file-explorer.ps1" "F:"
exit 0 # success

View File

@ -13,6 +13,8 @@
Author: Markus Fleschutz | License: CC0
#>
#requires -version 5.1
param([string]$Path = "")
try {

View File

@ -11,5 +11,7 @@
Author: Markus Fleschutz | License: CC0
#>
#requires -version 5.1
& "$PSScriptRoot/open-default-browser.ps1" "https://freefireplaces.com"
exit 0 # success

View File

@ -13,7 +13,9 @@
Author: Markus Fleschutz | License: CC0
#>
param([string]$URL = "http://www.fleschutz.de")
#requires -version 5.1
param([string]$URL = "https://www.fleschutz.de")
try {
$App = Get-AppxPackage -Name Mozilla.FireFox

View File

@ -4,12 +4,14 @@
.DESCRIPTION
This PowerShell script launches the Web browser with the FlightRadar24 website.
.EXAMPLE
PS> ./open-flight-radar
PS> ./open-flight-radar.ps1
.LINK
https://github.com/fleschutz/PowerShell
.NOTES
Author: Markus Fleschutz | License: CC0
#>
#requires -version 5.1
& "$PSScriptRoot/open-default-browser.ps1" "https://www.flightradar24.com"
exit 0 # success

View File

@ -11,5 +11,7 @@
Author: Markus Fleschutz | License: CC0
#>
#requires -version 5.1
& "$PSScriptRoot/open-file-explorer.ps1" "G:"
exit 0 # success

View File

@ -11,6 +11,8 @@
Author: Markus Fleschutz | License: CC0
#>
#requires -version 5.1
function TryToExec { param($Folder, $Binary)
if (test-path "$Folder/$Binary" -pathType leaf) {
start-process "$Folder/$Binary" -WorkingDirectory "$Folder"

View File

@ -4,12 +4,14 @@
.DESCRIPTION
This PowerShell script launches the Web browser with the Google Books website.
.EXAMPLE
PS> ./open-google-books
PS> ./open-google-books.ps1
.LINK
https://github.com/fleschutz/PowerShell
.NOTES
Author: Markus Fleschutz | License: CC0
#>
#requires -version 5.1
& "$PSScriptRoot/open-default-browser.ps1" "https://books.google.com"
exit 0 # success

View File

@ -4,12 +4,14 @@
.DESCRIPTION
This PowerShell script launches the Web browser with the Google Calendar website.
.EXAMPLE
PS> ./open-google-calendar
PS> ./open-google-calendar.ps1
.LINK
https://github.com/fleschutz/PowerShell
.NOTES
Author: Markus Fleschutz | License: CC0
#>
#requires -version 5.1
& "$PSScriptRoot/open-default-browser.ps1" "https://calendar.google.com"
exit 0 # success

View File

@ -11,5 +11,7 @@
Author: Markus Fleschutz | License: CC0
#>
#requires -version 5.1
& "$PSScriptRoot/open-default-browser.ps1" "https://contacts.google.com"
exit 0 # success

View File

@ -4,12 +4,14 @@
.DESCRIPTION
This PowerShell script launches the Web browser with the Google Docs website.
.EXAMPLE
PS> ./open-google-docs
PS> ./open-google-docs.ps1
.LINK
https://github.com/fleschutz/PowerShell
.NOTES
Author: Markus Fleschutz | License: CC0
#>
#requires -version 5.1
& "$PSScriptRoot/open-default-browser.ps1" "https://docs.google.com"
exit 0 # success

View File

@ -4,12 +4,14 @@
.DESCRIPTION
This PowerShell script launches the Web browser with the Google Earth website.
.EXAMPLE
PS> ./open-google-earth
PS> ./open-google-earth.ps1
.LINK
https://github.com/fleschutz/PowerShell
.NOTES
Author: Markus Fleschutz | License: CC0
#>
#requires -version 5.1
& "$PSScriptRoot/open-default-browser.ps1" "https://earth.google.com/web/"
exit 0 # success

View File

@ -4,12 +4,14 @@
.DESCRIPTION
This PowerShell script launches the Web browser with the Google Mail website.
.EXAMPLE
PS> ./open-google-mail
PS> ./open-google-mail.ps1
.LINK
https://github.com/fleschutz/PowerShell
.NOTES
Author: Markus Fleschutz | License: CC0
#>
#requires -version 5.1
& "$PSScriptRoot/open-default-browser.ps1" "https://mail.google.com"
exit 0 # success

View File

@ -4,12 +4,14 @@
.DESCRIPTION
This PowerShell script launches the Web browser with the Google Maps website.
.EXAMPLE
PS> ./open-google-maps
PS> ./open-google-maps.ps1
.LINK
https://github.com/fleschutz/PowerShell
.NOTES
Author: Markus Fleschutz | License: CC0
#>
#requires -version 5.1
& "$PSScriptRoot/open-default-browser.ps1" "https://www.google.com/maps"
exit 0 # success

View File

@ -4,12 +4,14 @@
.DESCRIPTION
This PowerShell script launches the Web browser with the Google News website.
.EXAMPLE
PS> ./open-google-news
PS> ./open-google-news.ps1
.LINK
https://github.com/fleschutz/PowerShell
.NOTES
Author: Markus Fleschutz | License: CC0
#>
#requires -version 5.1
& "$PSScriptRoot/open-default-browser.ps1" "https://news.google.com"
exit 0 # success

View File

@ -4,12 +4,14 @@
.DESCRIPTION
This PowerShell script launches the Web browser with the Google Photos website.
.EXAMPLE
PS> ./open-google-photos
PS> ./open-google-photos.ps1
.LINK
https://github.com/fleschutz/PowerShell
.NOTES
Author: Markus Fleschutz | License: CC0
#>
#requires -version 5.1
& "$PSScriptRoot/open-default-browser.ps1" "https://photos.google.com"
exit 0 # success

View File

@ -4,12 +4,14 @@
.DESCRIPTION
This PowerShell script launches the Web browser with the Google Play website.
.EXAMPLE
PS> ./open-google-play
PS> ./open-google-play.ps1
.LINK
https://github.com/fleschutz/PowerShell
.NOTES
Author: Markus Fleschutz | License: CC0
#>
#requires -version 5.1
& "$PSScriptRoot/open-default-browser.ps1" "https://play.google.com/store"
exit 0 # success

View File

@ -4,12 +4,14 @@
.DESCRIPTION
This PowerShell script launches the Web browser with the Google Search website.
.EXAMPLE
PS> ./open-google-search
PS> ./open-google-search.ps1
.LINK
https://github.com/fleschutz/PowerShell
.NOTES
Author: Markus Fleschutz | License: CC0
#>
#requires -version 5.1
& "$PSScriptRoot/open-default-browser.ps1" "https://google.com"
exit 0 # success

View File

@ -4,12 +4,14 @@
.DESCRIPTION
This PowerShell script launches the Web browser with the Google Stadia website.
.EXAMPLE
PS> ./open-google-stadia
PS> ./open-google-stadia.ps1
.LINK
https://github.com/fleschutz/PowerShell
.NOTES
Author: Markus Fleschutz | License: CC0
#>
#requires -version 5.1
& "$PSScriptRoot/open-default-browser.ps1" "https://stadia.google.com"
exit 0 # success

View File

@ -4,12 +4,14 @@
.DESCRIPTION
This PowerShell script launches the Web browser with the Google Translate website.
.EXAMPLE
PS> ./open-google-translate
PS> ./open-google-translate.ps1
.LINK
https://github.com/fleschutz/PowerShell
.NOTES
Author: Markus Fleschutz | License: CC0
#>
#requires -version 5.1
& "$PSScriptRoot/open-default-browser.ps1" "https://translate.google.com"
exit 0 # success

View File

@ -4,13 +4,15 @@
.DESCRIPTION
This script launches the File Explorer with the user's home folder.
.EXAMPLE
PS> ./open-home-folder
PS> ./open-home-folder.ps1
.LINK
https://github.com/fleschutz/PowerShell
.NOTES
Author: Markus Fleschutz | License: CC0
#>
#requires -version 5.1
try {
$TargetDir = resolve-path "$HOME"
if (-not(test-path "$TargetDir" -pathType container)) {

View File

@ -4,12 +4,14 @@
.DESCRIPTION
This script launches the Web browser with the Internet Archive website.
.EXAMPLE
PS> ./open-internet-archive
PS> ./open-internet-archive.ps1
.LINK
https://github.com/fleschutz/PowerShell
.NOTES
Author: Markus Fleschutz | License: CC0
#>
#requires -version 5.1
& "$PSScriptRoot/open-default-browser.ps1" "https://archive.org"
exit 0 # success

View File

@ -4,12 +4,14 @@
.DESCRIPTION
This script launches the Web browser with the Jitsi Meet website.
.EXAMPLE
PS> ./open-jitsi-meet
PS> ./open-jitsi-meet.ps1
.LINK
https://github.com/fleschutz/PowerShell
.NOTES
Author: Markus Fleschutz | License: CC0
#>
#requires -version 5.1
& "$PSScriptRoot/open-default-browser.ps1" "https://meet.jit.si/"
exit 0 # success

View File

@ -4,12 +4,14 @@
.DESCRIPTION
This script launches the File Explorer with the M: drive folder.
.EXAMPLE
PS> ./open-m-drive
PS> ./open-m-drive.ps1
.LINK
https://github.com/fleschutz/PowerShell
.NOTES
Author: Markus Fleschutz | License: CC0
#>
#requires -version 5.1
& "$PSScriptRoot/open-file-explorer.ps1" "M:"
exit 0 # success

View File

@ -4,15 +4,17 @@
.DESCRIPTION
This script launches the Windows Screen Magnifier application.
.EXAMPLE
PS> ./open-magnifier
PS> ./open-magnifier.ps1
.LINK
https://github.com/fleschutz/PowerShell
.NOTES
Author: Markus Fleschutz | License: CC0
#>
#requires -version 5.1
try {
start-process magnify.exe
Start-Process magnify.exe
exit 0 # success
} catch {
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"

View File

@ -4,13 +4,15 @@
.DESCRIPTION
This script launches the Microsoft Paint application.
.EXAMPLE
PS> ./open-microsoft-paint
PS> ./open-microsoft-paint.ps1
.LINK
https://github.com/fleschutz/PowerShell
.NOTES
Author: Markus Fleschutz | License: CC0
#>
#requires -version 5.1
try {
start-process mspaint.exe
exit 0 # success

View File

@ -4,12 +4,14 @@
.DESCRIPTION
This script launches the Microsoft Solitaire application.
.EXAMPLE
PS> ./open-microsoft-solitaire
PS> ./open-microsoft-solitaire.ps1
.LINK
https://github.com/fleschutz/PowerShell
.NOTES
Author: Markus Fleschutz | License: CC0
#>
#requires -version 5.1
Start-Process xboxliveapp-1297287741:
exit 0 # success

View File

@ -4,12 +4,14 @@
.DESCRIPTION
This script launches the Microsoft Store application.
.EXAMPLE
PS> ./open-microsoft-store
PS> ./open-microsoft-store.ps1
.LINK
https://github.com/fleschutz/PowerShell
.NOTES
Author: Markus Fleschutz | License: CC0
#>
#requires -version 5.1
Start-Process ms-windows-store:
exit 0 # success

View File

@ -4,13 +4,15 @@
.DESCRIPTION
This script launches the Microsoft Teams application.
.EXAMPLE
PS> ./open-microsoft-teams
PS> ./open-microsoft-teams.ps1
.LINK
https://github.com/fleschutz/PowerShell
.NOTES
Author: Markus Fleschutz | License: CC0
#>
#requires -version 5.1
try {
Start-Process msteams:
exit 0 # success

View File

@ -4,15 +4,17 @@
.DESCRIPTION
This script launches the File Explorer with the user's music folder.
.EXAMPLE
PS> ./open-music-folder
PS> ./open-music-folder.ps1
.LINK
https://github.com/fleschutz/PowerShell
.NOTES
Author: Markus Fleschutz | License: CC0
#>
#requires -version 5.1
try {
$TargetDir = resolve-path "$HOME/Music"
$TargetDir = Resolve-Path "$HOME/Music"
if (-not(test-path "$TargetDir" -pathType container)) {
throw "Music folder at 📂$TargetDir doesn't exist (yet)"
}

View File

@ -4,12 +4,14 @@
.DESCRIPTION
This script launches the Netflix application.
.EXAMPLE
PS> ./open-netflix
PS> ./open-netflix.ps1
.LINK
https://github.com/fleschutz/PowerShell
.NOTES
Author: Markus Fleschutz | License: CC0
#>
#requires -version 5.1
Start-Process netflix:
exit 0 # success

View File

@ -11,6 +11,8 @@
Author: Markus Fleschutz | License: CC0
#>
#requires -version 5.1
try {
Start-Process notepad.exe
exit 0 # success

View File

@ -4,13 +4,15 @@
.DESCRIPTION
This script launches the OBS Studio application.
.EXAMPLE
PS> ./open-obs-studio
PS> ./open-obs-studio.ps1
.LINK
https://github.com/fleschutz/PowerShell
.NOTES
Author: Markus Fleschutz | License: CC0
#>
#requires -version 5.1
function TryLaunching { param([string]$Path, [string]$Dir)
if (test-path "$Path" -pathType leaf) {
start-process -FilePath "$Path" -WorkingDirectory "$Dir"

View File

@ -4,12 +4,14 @@
.DESCRIPTION
This script launches the Web browser with the Microsoft Office 365 website.
.EXAMPLE
PS> ./open-office-365
PS> ./open-office-365.ps1
.LINK
https://github.com/fleschutz/PowerShell
.NOTES
Author: Markus Fleschutz | License: CC0
#>
#requires -version 5.1
& "$PSScriptRoot/open-default-browser.ps1" "https://portal.office.com"
exit 0 # success

View File

@ -4,13 +4,15 @@
.DESCRIPTION
This script launches the File Explorer with the user's OneDrive folder.
.EXAMPLE
PS> ./open-one-drive-folder
PS> ./open-one-drive-folder.ps1
.LINK
https://github.com/fleschutz/PowerShell
.NOTES
Author: Markus Fleschutz | License: CC0
#>
#requires -version 5.1
try {
$TargetDirs = resolve-path "$HOME/OneDrive*"
foreach($TargetDir in $TargetDirs) {

View File

@ -4,13 +4,15 @@
.DESCRIPTION
This script launches the Microsoft Outlook email application.
.EXAMPLE
PS> ./open-outlook
PS> ./open-outlook.ps1
.LINK
https://github.com/fleschutz/PowerShell
.NOTES
Author: Markus Fleschutz | License: CC0
#>
#requires -version 5.1
function TryToExec { param($Folder, $Binary)
if (test-path "$Folder/$Binary" -pathType leaf) {
start-process "$Folder/$Binary" -WorkingDirectory "$Folder"

View File

@ -4,15 +4,17 @@
.DESCRIPTION
This script launches the Paint 3D application.
.EXAMPLE
PS> ./open-paint-3d
PS> ./open-paint-3d.ps1
.LINK
https://github.com/fleschutz/PowerShell
.NOTES
Author: Markus Fleschutz | License: CC0
#>
#requires -version 5.1
try {
start-process ms-paint:
Start-Process ms-paint:
exit 0 # success
} catch {
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"

View File

@ -4,15 +4,17 @@
.DESCRIPTION
This script launches the File Explorer with the user's pictures folder.
.EXAMPLE
PS> ./open-pictures-folder
PS> ./open-pictures-folder.ps1
.LINK
https://github.com/fleschutz/PowerShell
.NOTES
Author: Markus Fleschutz | License: CC0
#>
#requires -version 5.1
try {
$TargetDir = resolve-path "$HOME/Pictures"
$TargetDir = Resolve-Path "$HOME/Pictures"
if (-not(test-path "$TargetDir" -pathType container)) {
throw "Pictures folder at 📂$TargetDir doesn't exist (yet)"
}

View File

@ -12,11 +12,13 @@
Author: Markus Fleschutz | License: CC0
#>
#requires -version 5.1
param([string]$hostname = "")
if ($hostname -eq "") {
& Start-Process "$env:windir\system32\mstsc.exe"
& Start-Process "$env:WINDIR\system32\mstsc.exe"
} else {
& Start-Process "$env:windir\system32\mstsc.exe" -ArgumentList "/v:$hostname"
& Start-Process "$env:WINDIR\system32\mstsc.exe" -ArgumentList "/v:$hostname"
}
exit 0 # success

View File

@ -11,8 +11,10 @@
Author: Markus Fleschutz | License: CC0
#>
#requires -version 5.1
try {
start shell:recyclebinfolder
Start shell:recyclebinfolder
exit 0 # success
} catch {
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"

View File

@ -4,15 +4,17 @@
.DESCRIPTION
This script launches the Remote Desktop application.
.EXAMPLE
PS> ./open-remote-desktop
PS> ./open-remote-desktop.ps1
.LINK
https://github.com/fleschutz/PowerShell
.NOTES
Author: Markus Fleschutz | License: CC0
#>
#requires -version 5.1
try {
start-process ms-rd:
Start-Process ms-rd:
exit 0 # success
} catch {
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"

View File

@ -4,13 +4,15 @@
.DESCRIPTION
This script launches the File Explorer with the user's Git repositories folder.
.EXAMPLE
PS> ./open-repos-folder
PS> ./open-repos-folder.ps1
.LINK
https://github.com/fleschutz/PowerShell
.NOTES
Author: Markus Fleschutz | License: CC0
#>
#requires -version 5.1
try {
$TargetDir = Resolve-Path "$HOME/Repos"
if (-not(Test-Path "$TargetDir" -pathType container)) {

View File

@ -4,13 +4,15 @@
.DESCRIPTION
This script launches the Screen Clip application.
.EXAMPLE
PS> ./open-screen-clip
PS> ./open-screen-clip.ps1
.LINK
https://github.com/fleschutz/PowerShell
.NOTES
Author: Markus Fleschutz | License: CC0
#>
#requires -version 5.1
try {
Start-Process ms-screenclip:
exit 0 # success

View File

@ -4,13 +4,15 @@
.DESCRIPTION
This script launches the Screen Sketch application.
.EXAMPLE
PS> ./open-screen-sketch
PS> ./open-screen-sketch.ps1
.LINK
https://github.com/fleschutz/PowerShell
.NOTES
Author: Markus Fleschutz | License: CC0
#>
#requires -version 5.1
try {
Start-Process ms-screensketch:
exit 0 # success

View File

@ -4,13 +4,15 @@
.DESCRIPTION
This script launches the Skype application.
.EXAMPLE
PS> ./open-skype
PS> ./open-skype.ps1
.LINK
https://github.com/fleschutz/PowerShell
.NOTES
Author: Markus Fleschutz | License: CC0
#>
#requires -version 5.1
try {
Start-Process skype:
exit 0 # success

View File

@ -4,12 +4,14 @@
.DESCRIPTION
This script launches the Snipping Tool application.
.EXAMPLE
PS> ./open-snipping-tool
PS> ./open-snipping-tool.ps1
.LINK
https://github.com/fleschutz/PowerShell
.NOTES
Author: Markus Fleschutz | License: CC0
#>
#requires -version 5.1
Start-Process SnippingTool.exe
exit 0 # success

View File

@ -4,12 +4,14 @@
.DESCRIPTION
This script launches the Web browser with Cloudflare's speed test website.
.EXAMPLE
PS> ./open-speed-test
PS> ./open-speed-test.ps1
.LINK
https://github.com/fleschutz/PowerShell
.NOTES
Author: Markus Fleschutz | License: CC0
#>
#requires -version 5.1
& "$PSScriptRoot/open-default-browser.ps1" "https://speed.cloudflare.com"
exit 0 # success

View File

@ -4,12 +4,14 @@
.DESCRIPTION
This script launches the Spotify application.
.EXAMPLE
PS> ./open-spotify
PS> ./open-spotify.ps1
.LINK
https://github.com/fleschutz/PowerShell
.NOTES
Author: Markus Fleschutz | License: CC0
#>
#requires -version 5.1
Start-Process spotify:
exit 0 # success

View File

@ -4,12 +4,14 @@
.DESCRIPTION
This script launches the Web browser with the Stack Overflow website.
.EXAMPLE
PS> ./open-stack-overflow
PS> ./open-stack-overflow.ps1
.LINK
https://github.com/fleschutz/PowerShell
.NOTES
Author: Markus Fleschutz | License: CC0
#>
#requires -version 5.1
& "$PSScriptRoot/open-default-browser.ps1" "https://stackoverflow.com"
exit 0 # success

View File

@ -4,12 +4,14 @@
.DESCRIPTION
This script launches the Web browser with the Startpage website.
.EXAMPLE
PS> ./open-start-page
PS> ./open-start-page.ps1
.LINK
https://github.com/fleschutz/PowerShell
.NOTES
Author: Markus Fleschutz | License: CC0
#>
#requires -version 5.1
& "$PSScriptRoot/open-default-browser.ps1" "https://www.startpage.com"
exit 0 # success

View File

@ -4,12 +4,14 @@
.DESCRIPTION
This script launches the Web browser with the OpenStreetMap website.
.EXAMPLE
PS> ./open-street-map
PS> ./open-street-map.ps1
.LINK
https://github.com/fleschutz/PowerShell
.NOTES
Author: Markus Fleschutz | License: CC0
#>
#requires -version 5.1
& "$PSScriptRoot/open-default-browser.ps1" "https://www.openstreetmap.org"
exit 0 # success

View File

@ -4,13 +4,15 @@
.DESCRIPTION
This script launches the Windows Task Manager application.
.EXAMPLE
PS> ./open-task-manager
PS> ./open-task-manager.ps1
.LINK
https://github.com/fleschutz/PowerShell
.NOTES
Author: Markus Fleschutz | License: CC0
#>
#requires -version 5.1
try {
Start-Process taskmgr.exe
exit 0 # success

View File

@ -4,13 +4,15 @@
.DESCRIPTION
This script launches the File Explorer showing the temporary folder.
.EXAMPLE
PS> ./open-temporary-folder
PS> ./open-temporary-folder.ps1
.LINK
https://github.com/fleschutz/PowerShell
.NOTES
Author: Markus Fleschutz | License: CC0
#>
#requires -version 5.1
function GetTempDir {
if ("$env:TEMP" -ne "") { return "$env:TEMP" }
if ("$env:TMP" -ne "") { return "$env:TMP" }

View File

@ -4,12 +4,14 @@
.DESCRIPTION
This script launches the 3D-Viewer application.
.EXAMPLE
PS> ./open-three-d-viewer
PS> ./open-three-d-viewer.ps1
.LINK
https://github.com/fleschutz/PowerShell
.NOTES
Author: Markus Fleschutz | License: CC0
#>
#requires -version 5.1
Start-Process com.microsoft.3dviewer:
exit 0 # success

View File

@ -4,13 +4,15 @@
.DESCRIPTION
This script launches the Mozilla Thunderbird email application.
.EXAMPLE
PS> ./open-thunderbird
PS> ./open-thunderbird.ps1
.LINK
https://github.com/fleschutz/PowerShell
.NOTES
Author: Markus Fleschutz | License: CC0
#>
#requires -version 5.1
function TryToExec { param($Folder, $Binary)
if (test-path "$Folder/$Binary" -pathType leaf) {
start-process "$Folder/$Binary" -WorkingDirectory "$Folder"

View File

@ -4,13 +4,15 @@
.DESCRIPTION
This script launches the File Explorer with the user's videos folder.
.EXAMPLE
PS> ./open-videos-folder
PS> ./open-videos-folder.ps1
.LINK
https://github.com/fleschutz/PowerShell
.NOTES
Author: Markus Fleschutz | License: CC0
#>
#requires -version 5.1
try {
$TargetDir = Resolve-Path "$HOME/Videos"
if (-not(Test-Path "$TargetDir" -pathType container)) {

View File

@ -11,6 +11,8 @@
Author: Markus Fleschutz | License: CC0
#>
#requires -version 5.1
function tryToLaunch { param($filePath)
if (Test-Path "$filePath" -pathType leaf) {
Start-Process "$filePath"

View File

@ -11,6 +11,8 @@
Author: Markus Fleschutz | License: CC0
#>
#requires -version 5.1
try {
Start-Process explorer.exe shell:appsFolder\Microsoft.WindowsSoundRecorder_8wekyb3d8bbwe!App
exit 0 # success

View File

@ -4,12 +4,14 @@
.DESCRIPTION
This PowerShell script launches the VPN settings of Windows.
.EXAMPLE
PS> ./open-vpn-settings
PS> ./open-vpn-settings.ps1
.LINK
https://github.com/fleschutz/PowerShell
.NOTES
Author: Markus Fleschutz | License: CC0
#>
#requires -version 5.1
Start-Process ms-settings:network-vpn
exit 0 # success

View File

@ -4,12 +4,14 @@
.DESCRIPTION
This script launches the Windows Defender application.
.EXAMPLE
PS> ./open-windows-defender
PS> ./open-windows-defender.ps1
.LINK
https://github.com/fleschutz/PowerShell
.NOTES
Author: Markus Fleschutz | License: CC0
#>
#requires -version 5.1
Start-Process windowsdefender:
exit 0 # success

View File

@ -4,12 +4,14 @@
.DESCRIPTION
This script launches the Windows Terminal application.
.EXAMPLE
PS> ./open-windows-terminal
PS> ./open-windows-terminal.ps1
.LINK
https://github.com/fleschutz/PowerShell
.NOTES
Author: Markus Fleschutz | License: CC0
#>
#requires -version 5.1
Start-Process wt.exe
exit 0 # success

View File

@ -4,7 +4,7 @@
.DESCRIPTION
This script launches the XING application.
.EXAMPLE
PS> ./open-xing
PS> ./open-xing.ps1
.LINK
https://github.com/fleschutz/PowerShell
.NOTES