mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-08-09 05:04:39 +02:00
Add open-wikipedia.ps1
This commit is contained in:
@ -2,7 +2,7 @@
|
||||
.SYNOPSIS
|
||||
Opens Amazon's website
|
||||
.DESCRIPTION
|
||||
This script starts the Web browser and opens the Amazon website.
|
||||
This script launches the Web browser with the Amazon website.
|
||||
.EXAMPLE
|
||||
PS> ./open-amazon
|
||||
.NOTES
|
||||
|
@ -2,7 +2,7 @@
|
||||
.SYNOPSIS
|
||||
Opens the default Web browser
|
||||
.DESCRIPTION
|
||||
This script opens the default Web browser, optional with given URL.
|
||||
This script launches the default Web browser, optional with a given URL.
|
||||
.PARAMETER URL
|
||||
Specifies the URL
|
||||
.EXAMPLE
|
||||
|
@ -2,7 +2,7 @@
|
||||
.SYNOPSIS
|
||||
Opens the C: drive folder
|
||||
.DESCRIPTION
|
||||
This script starts the File Explorer showing the C: drive folder.
|
||||
This script launches the File Explorer showing the C: drive folder.
|
||||
.EXAMPLE
|
||||
PS> ./open-c-drive
|
||||
.NOTES
|
||||
|
@ -2,7 +2,7 @@
|
||||
.SYNOPSIS
|
||||
Starts the calculator app
|
||||
.DESCRIPTION
|
||||
This script starts the calculator application.
|
||||
This script launches the calculator application.
|
||||
.EXAMPLE
|
||||
PS> ./open-calculator
|
||||
.NOTES
|
||||
|
@ -2,7 +2,7 @@
|
||||
.SYNOPSIS
|
||||
Opens the user's downloads folder
|
||||
.DESCRIPTION
|
||||
This script starts the File Explorer and shows the user's downloads folder.
|
||||
This script launches the File Explorer showing the user's downloads folder.
|
||||
.EXAMPLE
|
||||
PS> ./open-downloads-folder
|
||||
.NOTES
|
||||
|
@ -2,7 +2,7 @@
|
||||
.SYNOPSIS
|
||||
Opens the user's Dropbox folder
|
||||
.DESCRIPTION
|
||||
This script starts the File Explorer and shows the user's Dropbox folder.
|
||||
This script launches the File and showing the user's Dropbox folder.
|
||||
.EXAMPLE
|
||||
PS> ./open-dropbox-folder
|
||||
.NOTES
|
||||
|
@ -2,7 +2,7 @@
|
||||
.SYNOPSIS
|
||||
Starts Microsoft Edge
|
||||
.DESCRIPTION
|
||||
This script starts the Microsoft Edge Web browser.
|
||||
This script launches the Microsoft Edge Web browser.
|
||||
.EXAMPLE
|
||||
PS> ./open-edge
|
||||
.NOTES
|
||||
|
@ -2,7 +2,7 @@
|
||||
.SYNOPSIS
|
||||
Starts the default email client
|
||||
.DESCRIPTION
|
||||
This script starts the default email client.
|
||||
This script launches the default email client.
|
||||
.EXAMPLE
|
||||
PS> ./open-email-client
|
||||
.NOTES
|
||||
|
@ -2,7 +2,7 @@
|
||||
.SYNOPSIS
|
||||
Opens Facebook's website
|
||||
.DESCRIPTION
|
||||
This script starts the Web browser with Facebook's website.
|
||||
This script launches the Web browser with Facebook's website.
|
||||
.EXAMPLE
|
||||
PS> ./open-facebook
|
||||
.NOTES
|
||||
|
@ -2,7 +2,7 @@
|
||||
.SYNOPSIS
|
||||
Starts the File Explorer
|
||||
.DESCRIPTION
|
||||
This script starts the File Explorer.
|
||||
This script launches the File Explorer.
|
||||
.EXAMPLE
|
||||
PS> ./open-file-explorer
|
||||
.PARAMETER Path
|
||||
|
@ -2,7 +2,7 @@
|
||||
.SYNOPSIS
|
||||
Opens FRITZ!Box's Web interface
|
||||
.DESCRIPTION
|
||||
This script starts the Web browser with FRITZ!Box's Web interface.
|
||||
This script launches the Web browser with FRITZ!Box's Web interface.
|
||||
.EXAMPLE
|
||||
PS> ./open-fritz-box
|
||||
.NOTES
|
||||
|
@ -2,7 +2,7 @@
|
||||
.SYNOPSIS
|
||||
Opens GitHub's website
|
||||
.DESCRIPTION
|
||||
This script starts the Web browser with GitHub's website.
|
||||
This script launches the Web browser with the GitHub website.
|
||||
.EXAMPLE
|
||||
PS> ./open-github
|
||||
.NOTES
|
||||
|
@ -2,7 +2,7 @@
|
||||
.SYNOPSIS
|
||||
Opens Google Contacts
|
||||
.DESCRIPTION
|
||||
This script starts the Web browser and opens Google Contacts.
|
||||
This script launches the Web browser with Google Contacts website.
|
||||
.EXAMPLE
|
||||
PS> ./open-google-contacts
|
||||
.NOTES
|
||||
|
@ -2,7 +2,7 @@
|
||||
.SYNOPSIS
|
||||
Opens Google Earth
|
||||
.DESCRIPTION
|
||||
This script starts the Web browser and opens Google Earth
|
||||
This script launches the Web browser with Google Earth's website.
|
||||
.EXAMPLE
|
||||
PS> ./open-google-earth
|
||||
.NOTES
|
||||
|
@ -2,7 +2,7 @@
|
||||
.SYNOPSIS
|
||||
Opens Google Maps
|
||||
.DESCRIPTION
|
||||
This script starts the Web browser and opens Google Maps.
|
||||
This script launches the Web browser with the Google Maps website.
|
||||
.EXAMPLE
|
||||
PS> ./open-google-maps
|
||||
.NOTES
|
||||
|
@ -2,7 +2,7 @@
|
||||
.SYNOPSIS
|
||||
Opens Google News
|
||||
.DESCRIPTION
|
||||
This script starts the Web browser and opens Google News.
|
||||
This script launches the Web browser with the Google News website.
|
||||
.EXAMPLE
|
||||
PS> ./open-google-news
|
||||
.NOTES
|
||||
|
@ -2,7 +2,7 @@
|
||||
.SYNOPSIS
|
||||
Opens Google Search
|
||||
.DESCRIPTION
|
||||
This script starts the Web browser and opens Google Search
|
||||
This script launches the Web browser with the Google Search website.
|
||||
.EXAMPLE
|
||||
PS> ./open-google-search
|
||||
.NOTES
|
||||
|
@ -2,7 +2,7 @@
|
||||
.SYNOPSIS
|
||||
Opens Google Translate
|
||||
.DESCRIPTION
|
||||
This script starts the Web browser and opens Google Translate.
|
||||
This script launches the Web browser with the Google Translate website.
|
||||
.EXAMPLE
|
||||
PS> ./open-google-translate
|
||||
.NOTES
|
||||
|
@ -2,7 +2,7 @@
|
||||
.SYNOPSIS
|
||||
Opens the home folder
|
||||
.DESCRIPTION
|
||||
This script starts the File Explorer and shows the home folder.
|
||||
This script launches the File Explorer with the user's home folder.
|
||||
.EXAMPLE
|
||||
PS> ./open-home-folder
|
||||
.NOTES
|
||||
|
@ -2,7 +2,7 @@
|
||||
.SYNOPSIS
|
||||
Starts the Microsoft Store app
|
||||
.DESCRIPTION
|
||||
This script starts the Microsoft Store application.
|
||||
This script launches the Microsoft Store application.
|
||||
.EXAMPLE
|
||||
PS> ./open-microsoft-store
|
||||
.NOTES
|
||||
|
@ -2,7 +2,7 @@
|
||||
.SYNOPSIS
|
||||
Opens the music folder
|
||||
.DESCRIPTION
|
||||
This script starts the File Explorer and shows the music folder.
|
||||
This script launches the File Explorer with the user's music folder.
|
||||
.EXAMPLE
|
||||
PS> ./open-music-folder
|
||||
.NOTES
|
||||
|
@ -2,7 +2,7 @@
|
||||
.SYNOPSIS
|
||||
Starts the Netflix app
|
||||
.DESCRIPTION
|
||||
This script starts the Netflix application.
|
||||
This script launches the Netflix application.
|
||||
.EXAMPLE
|
||||
PS> ./open-netflix
|
||||
.NOTES
|
||||
|
@ -2,7 +2,7 @@
|
||||
.SYNOPSIS
|
||||
Starts Notepad
|
||||
.DESCRIPTION
|
||||
This script starts Notepad.
|
||||
This script launches the Notepad application.
|
||||
.EXAMPLE
|
||||
PS> ./open-notepad
|
||||
.NOTES
|
||||
|
@ -2,7 +2,7 @@
|
||||
.SYNOPSIS
|
||||
Opens the user's OneDrive folder
|
||||
.DESCRIPTION
|
||||
This script opens the user's OneDrive folder.
|
||||
This script launches Microsoft OneDrive with the user's OneDrive folder.
|
||||
.EXAMPLE
|
||||
PS> ./open-onedrive
|
||||
.NOTES
|
||||
|
@ -2,7 +2,7 @@
|
||||
.SYNOPSIS
|
||||
Opens the user's pictures folder
|
||||
.DESCRIPTION
|
||||
This script starts the File Explorer and shows the user's pictures folder.
|
||||
This script launches the File Explorer with the user's pictures folder.
|
||||
.EXAMPLE
|
||||
PS> ./open-pictures-folder
|
||||
.NOTES
|
||||
|
@ -2,7 +2,7 @@
|
||||
.SYNOPSIS
|
||||
Opens the user's recycle bin folder
|
||||
.DESCRIPTION
|
||||
This script starts the File Explorer and shows the user's recycle bin folder.
|
||||
This script launches the File Explorer with the user's recycle bin folder.
|
||||
.EXAMPLE
|
||||
PS> ./open-recycle-bin
|
||||
.NOTES
|
||||
|
@ -2,7 +2,7 @@
|
||||
.SYNOPSIS
|
||||
Opens the Git repositories folder
|
||||
.DESCRIPTION
|
||||
This script starts the File Explorer and shows the user's Git repositories folder.
|
||||
This script launches the File Explorer with the user's Git repositories folder.
|
||||
.EXAMPLE
|
||||
PS> ./open-repos-folder
|
||||
.NOTES
|
||||
|
@ -2,7 +2,7 @@
|
||||
.SYNOPSIS
|
||||
Starts the Snipping Tool
|
||||
.DESCRIPTION
|
||||
This script starts the Snipping Tool application.
|
||||
This script launches the Snipping Tool application.
|
||||
.EXAMPLE
|
||||
PS> ./open-snipping-tool
|
||||
.NOTES
|
||||
|
@ -2,7 +2,7 @@
|
||||
.SYNOPSIS
|
||||
Starts Spotify
|
||||
.DESCRIPTION
|
||||
This script starts the Spotify application.
|
||||
This script launches the Spotify application.
|
||||
.EXAMPLE
|
||||
PS> ./open-spotify
|
||||
.NOTES
|
||||
|
@ -1,8 +1,8 @@
|
||||
<#
|
||||
.SYNOPSIS
|
||||
Opens system settings of Windows
|
||||
Opens Windows system settings
|
||||
.DESCRIPTION
|
||||
This script starts the system settings of Windows.
|
||||
This script launches the Windows system settings application.
|
||||
.EXAMPLE
|
||||
PS> ./open-system-settings
|
||||
.NOTES
|
||||
|
@ -2,7 +2,7 @@
|
||||
.SYNOPSIS
|
||||
Starts the Task Manager
|
||||
.DESCRIPTION
|
||||
This script starts the Task Manager application (Windows only).
|
||||
This script launches the Windows Task Manager application.
|
||||
.EXAMPLE
|
||||
PS> ./open-task-manager
|
||||
.NOTES
|
||||
|
@ -2,7 +2,7 @@
|
||||
.SYNOPSIS
|
||||
Opens Toggl Track
|
||||
.DESCRIPTION
|
||||
This script starts the Web browser and opens Toggl Track
|
||||
This script launches the Web browser with the Toggl Track website.
|
||||
.EXAMPLE
|
||||
PS> ./open-toggl-track
|
||||
.NOTES
|
||||
|
@ -2,7 +2,7 @@
|
||||
.SYNOPSIS
|
||||
Opens the user's videos folder
|
||||
.DESCRIPTION
|
||||
This script starts the File Explorer and shows the user's videos folder.
|
||||
This script launches the File Explorer with the user's videos folder.
|
||||
.EXAMPLE
|
||||
PS> ./open-videos-folder
|
||||
.NOTES
|
||||
|
15
Scripts/open-wikipedia.ps1
Executable file
15
Scripts/open-wikipedia.ps1
Executable file
@ -0,0 +1,15 @@
|
||||
<#
|
||||
.SYNOPSIS
|
||||
Opens Wikipedia's website
|
||||
.DESCRIPTION
|
||||
This script launches the Web browser with Wikipedia's website.
|
||||
.EXAMPLE
|
||||
PS> ./open-wikipedia
|
||||
.NOTES
|
||||
Author: Markus Fleschutz · License: CC0
|
||||
.LINK
|
||||
https://github.com/fleschutz/PowerShell
|
||||
#>
|
||||
|
||||
& "$PSScriptRoot/open-browser.ps1" "https://www.wikipedia.org"
|
||||
exit 0 # success
|
@ -2,7 +2,7 @@
|
||||
.SYNOPSIS
|
||||
Opens YouTube
|
||||
.DESCRIPTION
|
||||
This script starts the Web browser and opens YouTube.com.
|
||||
This script launches the Web browser with YouTube's website.
|
||||
.EXAMPLE
|
||||
PS> ./open-youtube
|
||||
.NOTES
|
||||
@ -11,10 +11,5 @@
|
||||
https://github.com/fleschutz/PowerShell
|
||||
#>
|
||||
|
||||
try {
|
||||
& "$PSScriptRoot/open-browser.ps1" "https://www.youtube.com"
|
||||
exit 0 # success
|
||||
} catch {
|
||||
"⚠️ Error: $($Error[0]) ($($MyInvocation.MyCommand.Name):$($_.InvocationInfo.ScriptLineNumber))"
|
||||
exit 1
|
||||
}
|
||||
& "$PSScriptRoot/open-browser.ps1" "https://www.youtube.com"
|
||||
exit 0 # success
|
||||
|
Reference in New Issue
Block a user