Add open-google-earth.ps1, open-google-maps.ps1, open-google-search.ps1

This commit is contained in:
Markus Fleschutz 2021-10-24 20:07:37 +02:00
parent 0bfa4ce4c9
commit a6999c931b
8 changed files with 144 additions and 0 deletions

View File

@ -166,6 +166,9 @@ open-downloads-folder.ps1, Opens the user's downloads folder
open-dropbox-folder.ps1, Opens the user's Dropbox folder
open-email-client.ps1, Starts the default email client
open-file-explorer.ps1, Opens the File Explorer
open-google-earth.ps1, Opens Google Earth
open-google-maps.ps1, Opens Google Maps
open-google-search.ps1, Opens Google Search
open-home-folder.ps1, Opens the user's home folder
open-music-folder.ps1, Opens the user's music folder
open-netflix.ps1, Starts the Netflix app

Can't render this file because it has a wrong number of fields in line 94.

26
Docs/open-google-earth.md Normal file
View File

@ -0,0 +1,26 @@
## open-google-earth.ps1 - Opens Google Earth
This script starts the Web browser and opens Google Earth
## Parameters
```powershell
open-google-earth.ps1 [<CommonParameters>]
[<CommonParameters>]
This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction,
WarningVariable, OutBuffer, PipelineVariable, and OutVariable.
```
## Example
```powershell
PS> ./open-google-earth
```
## Notes
Author: Markus Fleschutz · License: CC0
## Related Links
https://github.com/fleschutz/PowerShell
*Generated by convert-ps2md.ps1 using the comment-based help of open-google-earth.ps1*

26
Docs/open-google-maps.md Normal file
View File

@ -0,0 +1,26 @@
## open-google-maps.ps1 - Opens Google Maps
This script starts the Web browser and opens Google Maps.
## Parameters
```powershell
open-google-maps.ps1 [<CommonParameters>]
[<CommonParameters>]
This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction,
WarningVariable, OutBuffer, PipelineVariable, and OutVariable.
```
## Example
```powershell
PS> ./open-google-maps
```
## Notes
Author: Markus Fleschutz · License: CC0
## Related Links
https://github.com/fleschutz/PowerShell
*Generated by convert-ps2md.ps1 using the comment-based help of open-google-maps.ps1*

View File

@ -0,0 +1,26 @@
## open-google-search.ps1 - Opens Google Search
This script starts the Web browser and opens Google Search
## Parameters
```powershell
open-google-search.ps1 [<CommonParameters>]
[<CommonParameters>]
This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction,
WarningVariable, OutBuffer, PipelineVariable, and OutVariable.
```
## Example
```powershell
PS> ./open-google-search
```
## Notes
Author: Markus Fleschutz · License: CC0
## Related Links
https://github.com/fleschutz/PowerShell
*Generated by convert-ps2md.ps1 using the comment-based help of open-google-search.ps1*

View File

@ -121,6 +121,9 @@ Mega Collection of PowerShell Scripts
| [open-dropbox-folder.ps1](Scripts/open-dropbox-folder.ps1) | Opens the user's Dropbox folder | [Help](Docs/open-dropbox-folder.md) |
| [open-email-client.ps1](Scripts/open-browser.ps1) | Starts the default email client | [Help](Docs/open-email-client.md) |
| [open-file-explorer.ps1](Scripts/open-file-explorer.ps1) | Opens the File Explorer | [Help](Docs/open-file-explorer.md) |
| [open-google-earth.ps1](Scripts/open-google-earth.ps1) | Opens Google Earth | [Help](Docs/open-google-earth.md) |
| [open-google-maps.ps1](Scripts/open-google-maps.ps1) | Opens Google Maps | [Help](Docs/open-google-maps.md) |
| [open-google-search.ps1](Scripts/open-google-search.ps1) | Opens Google Search | [Help](Docs/open-google-search.md) |
| [open-home-folder.ps1](Scripts/open-home-folder.ps1) | Opens the user's home folder | [Help](Docs/open-home-folder.md) |
| [open-music-folder.ps1](Scripts/open-music-folder.ps1)| Opens the user's music folder | [Help](Docs/open-music-folder.md) |
| [open-netflix.ps1](Scripts/open-netflix.ps1) | Starts the Netflix app | [Help](Docs/open-netflix.md) |

20
Scripts/open-google-earth.ps1 Executable file
View File

@ -0,0 +1,20 @@
<#
.SYNOPSIS
Opens Google Earth
.DESCRIPTION
This script starts the Web browser and opens Google Earth
.EXAMPLE
PS> ./open-google-earth
.NOTES
Author: Markus Fleschutz · License: CC0
.LINK
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
}

20
Scripts/open-google-maps.ps1 Executable file
View File

@ -0,0 +1,20 @@
<#
.SYNOPSIS
Opens Google Maps
.DESCRIPTION
This script starts the Web browser and opens Google Maps.
.EXAMPLE
PS> ./open-google-maps
.NOTES
Author: Markus Fleschutz · License: CC0
.LINK
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
}

20
Scripts/open-google-search.ps1 Executable file
View File

@ -0,0 +1,20 @@
<#
.SYNOPSIS
Opens Google Search
.DESCRIPTION
This script starts the Web browser and opens Google Search
.EXAMPLE
PS> ./open-google-search
.NOTES
Author: Markus Fleschutz · License: CC0
.LINK
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
}