mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-08-08 20:54:38 +02:00
Add open-google-play.ps1 and open-google-mail.ps1
This commit is contained in:
@ -2,7 +2,7 @@
|
||||
.SYNOPSIS
|
||||
Opens Google Contacts
|
||||
.DESCRIPTION
|
||||
This script launches the Web browser with Google Contacts website.
|
||||
This script launches the Web browser with the Google Contacts website.
|
||||
.EXAMPLE
|
||||
PS> ./open-google-contacts
|
||||
.NOTES
|
||||
@ -11,10 +11,5 @@
|
||||
https://github.com/fleschutz/PowerShell
|
||||
#>
|
||||
|
||||
try {
|
||||
& "$PSScriptRoot/open-browser.ps1" "https://contacts.google.com"
|
||||
exit 0 # success
|
||||
} catch {
|
||||
"⚠️ Error: $($Error[0]) ($($MyInvocation.MyCommand.Name):$($_.InvocationInfo.ScriptLineNumber))"
|
||||
exit 1
|
||||
}
|
||||
& "$PSScriptRoot/open-browser.ps1" "https://contacts.google.com"
|
||||
exit 0 # success
|
||||
|
@ -2,7 +2,7 @@
|
||||
.SYNOPSIS
|
||||
Opens Google Earth
|
||||
.DESCRIPTION
|
||||
This script launches the Web browser with Google Earth's website.
|
||||
This script launches the Web browser with the Google Earth website.
|
||||
.EXAMPLE
|
||||
PS> ./open-google-earth
|
||||
.NOTES
|
||||
@ -11,10 +11,5 @@
|
||||
https://github.com/fleschutz/PowerShell
|
||||
#>
|
||||
|
||||
try {
|
||||
& "$PSScriptRoot/open-browser.ps1" "https://earth.google.com/web/"
|
||||
exit 0 # success
|
||||
} catch {
|
||||
"⚠️ Error: $($Error[0]) ($($MyInvocation.MyCommand.Name):$($_.InvocationInfo.ScriptLineNumber))"
|
||||
exit 1
|
||||
}
|
||||
& "$PSScriptRoot/open-browser.ps1" "https://earth.google.com/web/"
|
||||
exit 0 # success
|
||||
|
15
Scripts/open-google-mail.ps1
Executable file
15
Scripts/open-google-mail.ps1
Executable file
@ -0,0 +1,15 @@
|
||||
<#
|
||||
.SYNOPSIS
|
||||
Opens Google Mail
|
||||
.DESCRIPTION
|
||||
This script launches the Web browser with the Google Mail website.
|
||||
.EXAMPLE
|
||||
PS> ./open-google-mail
|
||||
.NOTES
|
||||
Author: Markus Fleschutz · License: CC0
|
||||
.LINK
|
||||
https://github.com/fleschutz/PowerShell
|
||||
#>
|
||||
|
||||
& "$PSScriptRoot/open-browser.ps1" "https://mail.google.com"
|
||||
exit 0 # success
|
@ -11,10 +11,5 @@
|
||||
https://github.com/fleschutz/PowerShell
|
||||
#>
|
||||
|
||||
try {
|
||||
& "$PSScriptRoot/open-browser.ps1" "https://google.de/maps"
|
||||
exit 0 # success
|
||||
} catch {
|
||||
"⚠️ Error: $($Error[0]) ($($MyInvocation.MyCommand.Name):$($_.InvocationInfo.ScriptLineNumber))"
|
||||
exit 1
|
||||
}
|
||||
& "$PSScriptRoot/open-browser.ps1" "https://google.de/maps"
|
||||
exit 0 # success
|
||||
|
@ -11,10 +11,5 @@
|
||||
https://github.com/fleschutz/PowerShell
|
||||
#>
|
||||
|
||||
try {
|
||||
& "$PSScriptRoot/open-browser.ps1" "https://news.google.com"
|
||||
exit 0 # success
|
||||
} catch {
|
||||
"⚠️ Error: $($Error[0]) ($($MyInvocation.MyCommand.Name):$($_.InvocationInfo.ScriptLineNumber))"
|
||||
exit 1
|
||||
}
|
||||
& "$PSScriptRoot/open-browser.ps1" "https://news.google.com"
|
||||
exit 0 # success
|
||||
|
15
Scripts/open-google-play.ps1
Executable file
15
Scripts/open-google-play.ps1
Executable file
@ -0,0 +1,15 @@
|
||||
<#
|
||||
.SYNOPSIS
|
||||
Opens Google Play
|
||||
.DESCRIPTION
|
||||
This script launches the Web browser with the Google Play website.
|
||||
.EXAMPLE
|
||||
PS> ./open-google-play
|
||||
.NOTES
|
||||
Author: Markus Fleschutz · License: CC0
|
||||
.LINK
|
||||
https://github.com/fleschutz/PowerShell
|
||||
#>
|
||||
|
||||
& "$PSScriptRoot/open-browser.ps1" "https://play.google.com/store"
|
||||
exit 0 # success
|
@ -11,10 +11,5 @@
|
||||
https://github.com/fleschutz/PowerShell
|
||||
#>
|
||||
|
||||
try {
|
||||
& "$PSScriptRoot/open-browser.ps1" "https://google.com"
|
||||
exit 0 # success
|
||||
} catch {
|
||||
"⚠️ Error: $($Error[0]) ($($MyInvocation.MyCommand.Name):$($_.InvocationInfo.ScriptLineNumber))"
|
||||
exit 1
|
||||
}
|
||||
& "$PSScriptRoot/open-browser.ps1" "https://google.com"
|
||||
exit 0 # success
|
||||
|
@ -11,10 +11,5 @@
|
||||
https://github.com/fleschutz/PowerShell
|
||||
#>
|
||||
|
||||
try {
|
||||
& "$PSScriptRoot/open-browser.ps1" "https://translate.google.com"
|
||||
exit 0 # success
|
||||
} catch {
|
||||
"⚠️ Error: $($Error[0]) ($($MyInvocation.MyCommand.Name):$($_.InvocationInfo.ScriptLineNumber))"
|
||||
exit 1
|
||||
}
|
||||
& "$PSScriptRoot/open-browser.ps1" "https://translate.google.com"
|
||||
exit 0 # success
|
||||
|
Reference in New Issue
Block a user