mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-04-30 13:44:43 +02:00
Add open-amazon.ps1 and open-facebook.ps1
This commit is contained in:
parent
312b38a04a
commit
33e36008ed
@ -159,12 +159,14 @@ locate-zip-code.ps1, Prints the geographic location of the given zip-code
|
|||||||
make-install.ps1, Installs built executables and libs to the installation directory
|
make-install.ps1, Installs built executables and libs to the installation directory
|
||||||
moon.ps1, Prints the current moon phase
|
moon.ps1, Prints the current moon phase
|
||||||
mute-audio.ps1, Mutes the audio device
|
mute-audio.ps1, Mutes the audio device
|
||||||
|
open-amazon.ps1, Opens Amazon's website
|
||||||
open-browser.ps1, Starts the default Web browser
|
open-browser.ps1, Starts the default Web browser
|
||||||
open-calculator.ps1, Starts the calculator program
|
open-calculator.ps1, Starts the calculator program
|
||||||
open-c-drive.ps1, Opens the C: drive folder
|
open-c-drive.ps1, Opens the C: drive folder
|
||||||
open-downloads-folder.ps1, Opens the user's downloads folder
|
open-downloads-folder.ps1, Opens the user's downloads folder
|
||||||
open-dropbox-folder.ps1, Opens the user's Dropbox folder
|
open-dropbox-folder.ps1, Opens the user's Dropbox folder
|
||||||
open-email-client.ps1, Starts the default email client
|
open-email-client.ps1, Starts the default email client
|
||||||
|
open-facebook.ps1, Opens Facebook's website
|
||||||
open-file-explorer.ps1, Opens the File Explorer
|
open-file-explorer.ps1, Opens the File Explorer
|
||||||
open-google-contacts.ps1, Opens Google Contacts
|
open-google-contacts.ps1, Opens Google Contacts
|
||||||
open-google-earth.ps1, Opens Google Earth
|
open-google-earth.ps1, Opens Google Earth
|
||||||
|
Can't render this file because it has a wrong number of fields in line 94.
|
26
Docs/open-amazon.md
Normal file
26
Docs/open-amazon.md
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
## open-amazon.ps1 - Opens Amazon's website
|
||||||
|
|
||||||
|
This script starts the Web browser and opens the Amazon website.
|
||||||
|
|
||||||
|
## Parameters
|
||||||
|
```powershell
|
||||||
|
open-amazon.ps1 [<CommonParameters>]
|
||||||
|
|
||||||
|
[<CommonParameters>]
|
||||||
|
This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction,
|
||||||
|
WarningVariable, OutBuffer, PipelineVariable, and OutVariable.
|
||||||
|
```
|
||||||
|
|
||||||
|
## Example
|
||||||
|
```powershell
|
||||||
|
PS> ./open-amazon
|
||||||
|
|
||||||
|
```
|
||||||
|
|
||||||
|
## 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-amazon.ps1*
|
26
Docs/open-facebook.md
Normal file
26
Docs/open-facebook.md
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
## open-facebook.ps1 - Opens Facebook's website
|
||||||
|
|
||||||
|
This script starts the Web browser and opens Facebook's website.
|
||||||
|
|
||||||
|
## Parameters
|
||||||
|
```powershell
|
||||||
|
open-facebook.ps1 [<CommonParameters>]
|
||||||
|
|
||||||
|
[<CommonParameters>]
|
||||||
|
This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction,
|
||||||
|
WarningVariable, OutBuffer, PipelineVariable, and OutVariable.
|
||||||
|
```
|
||||||
|
|
||||||
|
## Example
|
||||||
|
```powershell
|
||||||
|
PS> ./open-facebook
|
||||||
|
|
||||||
|
```
|
||||||
|
|
||||||
|
## 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-facebook.ps1*
|
@ -114,12 +114,14 @@ Mega Collection of PowerShell Scripts
|
|||||||
| [enable-god-mode.ps1](Scripts/enable-god-mode.ps1) | Enables the god mode (adds a new icon to the desktop) | [Help](Docs/enable-god-mode.md) |
|
| [enable-god-mode.ps1](Scripts/enable-god-mode.ps1) | Enables the god mode (adds a new icon to the desktop) | [Help](Docs/enable-god-mode.md) |
|
||||||
| [list-clipboard.ps1](Scripts/list-clipboard.ps1) | Lists the contents of the clipboard | [Help](Docs/list-clipboard.md) |
|
| [list-clipboard.ps1](Scripts/list-clipboard.ps1) | Lists the contents of the clipboard | [Help](Docs/list-clipboard.md) |
|
||||||
| [new-email.ps1](Scripts/new-email.ps1) | Starts the default email client to write a new email | [Help](Docs/new-email.md) |
|
| [new-email.ps1](Scripts/new-email.ps1) | Starts the default email client to write a new email | [Help](Docs/new-email.md) |
|
||||||
|
| [open-amazon.ps1](Scripts/open-amazon.ps1) | Opens Amazon's website | [Help](Docs/open-amazon.md) |
|
||||||
| [open-browser.ps1](Scripts/open-browser.ps1) | Starts the default Web browser | [Help](Docs/open-browser.md) |
|
| [open-browser.ps1](Scripts/open-browser.ps1) | Starts the default Web browser | [Help](Docs/open-browser.md) |
|
||||||
| [open-calculator.ps1](Scripts/open-calculator.ps1) | Starts the calculator program | [Help](Docs/open-calculator.md) |
|
| [open-calculator.ps1](Scripts/open-calculator.ps1) | Starts the calculator program | [Help](Docs/open-calculator.md) |
|
||||||
| [open-c-drive.ps1](Scripts/open-c-drive.ps1) | Opens the C: drive folder | [Help](Docs/open-c-drive.md) |
|
| [open-c-drive.ps1](Scripts/open-c-drive.ps1) | Opens the C: drive folder | [Help](Docs/open-c-drive.md) |
|
||||||
| [open-downloads-folders.ps1](Scripts/open-downloads-folder.ps1) | Opens the user's downloads folder | [Help](Docs/open-downloads-folder.md) |
|
| [open-downloads-folders.ps1](Scripts/open-downloads-folder.ps1) | Opens the user's downloads folder | [Help](Docs/open-downloads-folder.md) |
|
||||||
| [open-dropbox-folder.ps1](Scripts/open-dropbox-folder.ps1) | Opens the user's Dropbox folder | [Help](Docs/open-dropbox-folder.md) |
|
| [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-email-client.ps1](Scripts/open-browser.ps1) | Starts the default email client | [Help](Docs/open-email-client.md) |
|
||||||
|
| [open-facebook.ps1](Scripts/open-facebook.ps1) | Opens Facebook's website | [Help](Docs/open-facebook.md) |
|
||||||
| [open-file-explorer.ps1](Scripts/open-file-explorer.ps1) | Opens the File Explorer | [Help](Docs/open-file-explorer.md) |
|
| [open-file-explorer.ps1](Scripts/open-file-explorer.ps1) | Opens the File Explorer | [Help](Docs/open-file-explorer.md) |
|
||||||
| [open-google-contacts.ps1](Scripts/open-google-contacts.ps1) | Opens Google Contacts | [Help](Docs/open-google-contacts.md) |
|
| [open-google-contacts.ps1](Scripts/open-google-contacts.ps1) | Opens Google Contacts | [Help](Docs/open-google-contacts.md) |
|
||||||
| [open-google-earth.ps1](Scripts/open-google-earth.ps1) | Opens Google Earth | [Help](Docs/open-google-earth.md) |
|
| [open-google-earth.ps1](Scripts/open-google-earth.ps1) | Opens Google Earth | [Help](Docs/open-google-earth.md) |
|
||||||
|
20
Scripts/open-amazon.ps1
Executable file
20
Scripts/open-amazon.ps1
Executable file
@ -0,0 +1,20 @@
|
|||||||
|
<#
|
||||||
|
.SYNOPSIS
|
||||||
|
Opens Amazon's website
|
||||||
|
.DESCRIPTION
|
||||||
|
This script starts the Web browser and opens the Amazon website.
|
||||||
|
.EXAMPLE
|
||||||
|
PS> ./open-amazon
|
||||||
|
.NOTES
|
||||||
|
Author: Markus Fleschutz · License: CC0
|
||||||
|
.LINK
|
||||||
|
https://github.com/fleschutz/PowerShell
|
||||||
|
#>
|
||||||
|
|
||||||
|
try {
|
||||||
|
& "$PSScriptRoot/open-browser.ps1" "https://www.amazon.com"
|
||||||
|
exit 0 # success
|
||||||
|
} catch {
|
||||||
|
"⚠️ Error: $($Error[0]) ($($MyInvocation.MyCommand.Name):$($_.InvocationInfo.ScriptLineNumber))"
|
||||||
|
exit 1
|
||||||
|
}
|
20
Scripts/open-facebook.ps1
Executable file
20
Scripts/open-facebook.ps1
Executable file
@ -0,0 +1,20 @@
|
|||||||
|
<#
|
||||||
|
.SYNOPSIS
|
||||||
|
Opens Facebook's website
|
||||||
|
.DESCRIPTION
|
||||||
|
This script starts the Web browser and opens Facebook's website.
|
||||||
|
.EXAMPLE
|
||||||
|
PS> ./open-facebook
|
||||||
|
.NOTES
|
||||||
|
Author: Markus Fleschutz · License: CC0
|
||||||
|
.LINK
|
||||||
|
https://github.com/fleschutz/PowerShell
|
||||||
|
#>
|
||||||
|
|
||||||
|
try {
|
||||||
|
& "$PSScriptRoot/open-browser.ps1" "https://www.facebook.com"
|
||||||
|
exit 0 # success
|
||||||
|
} catch {
|
||||||
|
"⚠️ Error: $($Error[0]) ($($MyInvocation.MyCommand.Name):$($_.InvocationInfo.ScriptLineNumber))"
|
||||||
|
exit 1
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user