mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-03-28 07:38:38 +01:00
Add open-dropbox-folder.ps1
This commit is contained in:
parent
6ed1e06438
commit
f07931b8b4
@ -159,6 +159,7 @@ mute-audio.ps1, Mutes the audio device
|
||||
open-browser.ps1, Starts the default Web browser
|
||||
open-calculator.ps1, Starts the calculator program
|
||||
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-home-folder.ps1, Opens the user's home folder
|
||||
|
Can't render this file because it has a wrong number of fields in line 91.
|
@ -1,6 +1,6 @@
|
||||
## open-downloads-folder.ps1 - Opens the downloads folder
|
||||
## open-downloads-folder.ps1 - Opens the user's downloads folder
|
||||
|
||||
This script starts the File Explorer to show the downloads folder.
|
||||
This script starts the File Explorer and shows the user's downloads folder.
|
||||
|
||||
## Parameters
|
||||
```powershell
|
||||
|
26
Docs/open-dropbox-folder.md
Normal file
26
Docs/open-dropbox-folder.md
Normal file
@ -0,0 +1,26 @@
|
||||
## open-dropbox-folder.ps1 - Opens the user's Dropbox folder
|
||||
|
||||
This script starts the File Explorer and shows the user's Dropbox folder.
|
||||
|
||||
## Parameters
|
||||
```powershell
|
||||
open-dropbox-folder.ps1 [<CommonParameters>]
|
||||
|
||||
[<CommonParameters>]
|
||||
This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction,
|
||||
WarningVariable, OutBuffer, PipelineVariable, and OutVariable.
|
||||
```
|
||||
|
||||
## Example
|
||||
```powershell
|
||||
PS> ./open-dropbox-folder
|
||||
|
||||
```
|
||||
|
||||
## 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-dropbox-folder.ps1*
|
@ -1,6 +1,6 @@
|
||||
## open-home-folder.ps1 - Opens the home folder
|
||||
|
||||
This script starts the File Explorer to show the home folder.
|
||||
This script starts the File Explorer and shows the home folder.
|
||||
|
||||
## Parameters
|
||||
```powershell
|
||||
|
@ -1,6 +1,6 @@
|
||||
## open-music-folder.ps1 - Opens the music folder
|
||||
|
||||
This script starts the File Explorer to show the music folder.
|
||||
This script starts the File Explorer and shows the music folder.
|
||||
|
||||
## Parameters
|
||||
```powershell
|
||||
|
@ -1,6 +1,6 @@
|
||||
## open-recycle-bin.ps1 - Starts the File Explorer with the recycle bin folder
|
||||
## open-recycle-bin.ps1 - Opens the user's recycle bin folder
|
||||
|
||||
This script starts the File Explorer with the recycle bin folder.
|
||||
This script starts the File Explorer and shows the user's recycle bin folder.
|
||||
|
||||
## Parameters
|
||||
```powershell
|
||||
|
@ -1,6 +1,6 @@
|
||||
## open-repos-folder.ps1 - Opens the Git repositories folder
|
||||
|
||||
This script starts the File Explorer to show the repositories folder.
|
||||
This script starts the File Explorer and shows the user's Git repositories folder.
|
||||
|
||||
## Parameters
|
||||
```powershell
|
||||
|
@ -1,6 +1,6 @@
|
||||
## open-videos-folders.ps1 - Opens the File Explorer with the videos folder
|
||||
## open-videos-folders.ps1 - Opens the user's videos folder
|
||||
|
||||
This script starts the File Explorer to show the home folder.
|
||||
This script starts the File Explorer and shows the user's videos folder.
|
||||
|
||||
## Parameters
|
||||
```powershell
|
||||
|
@ -114,6 +114,7 @@ Mega Collection of PowerShell Scripts
|
||||
| [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-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-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-home-folder.ps1](Scripts/open-home-folder.ps1) | Opens the user's home folder | [Help](Docs/open-home-folder.md) |
|
||||
|
@ -1,8 +1,8 @@
|
||||
<#
|
||||
.SYNOPSIS
|
||||
Opens the downloads folder
|
||||
Opens the user's downloads folder
|
||||
.DESCRIPTION
|
||||
This script starts the File Explorer to show the downloads folder.
|
||||
This script starts the File Explorer and shows the user's downloads folder.
|
||||
.EXAMPLE
|
||||
PS> ./open-downloads-folder
|
||||
.NOTES
|
||||
|
24
Scripts/open-dropbox-folder.ps1
Executable file
24
Scripts/open-dropbox-folder.ps1
Executable file
@ -0,0 +1,24 @@
|
||||
<#
|
||||
.SYNOPSIS
|
||||
Opens the user's Dropbox folder
|
||||
.DESCRIPTION
|
||||
This script starts the File Explorer and shows the user's Dropbox folder.
|
||||
.EXAMPLE
|
||||
PS> ./open-dropbox-folder
|
||||
.NOTES
|
||||
Author: Markus Fleschutz · License: CC0
|
||||
.LINK
|
||||
https://github.com/fleschutz/PowerShell
|
||||
#>
|
||||
|
||||
try {
|
||||
$TargetDir = resolve-path "$HOME/Dropbox"
|
||||
if (-not(test-path "$TargetDir" -pathType container)) {
|
||||
throw "Dropbox folder at 📂$TargetDir doesn't exist (yet)"
|
||||
}
|
||||
& "$PSScriptRoot/open-file-explorer.ps1" "$TargetDir"
|
||||
exit 0 # success
|
||||
} catch {
|
||||
"⚠️ Error: $($Error[0]) ($($MyInvocation.MyCommand.Name):$($_.InvocationInfo.ScriptLineNumber))"
|
||||
exit 1
|
||||
}
|
@ -2,7 +2,7 @@
|
||||
.SYNOPSIS
|
||||
Opens the home folder
|
||||
.DESCRIPTION
|
||||
This script starts the File Explorer to show the home folder.
|
||||
This script starts the File Explorer and shows the home folder.
|
||||
.EXAMPLE
|
||||
PS> ./open-home-folder
|
||||
.NOTES
|
||||
|
@ -2,7 +2,7 @@
|
||||
.SYNOPSIS
|
||||
Opens the music folder
|
||||
.DESCRIPTION
|
||||
This script starts the File Explorer to show the music folder.
|
||||
This script starts the File Explorer and shows the music folder.
|
||||
.EXAMPLE
|
||||
PS> ./open-music-folder
|
||||
.NOTES
|
||||
|
@ -1,8 +1,8 @@
|
||||
<#
|
||||
.SYNOPSIS
|
||||
Starts the File Explorer with the recycle bin folder
|
||||
Opens the user's recycle bin folder
|
||||
.DESCRIPTION
|
||||
This script starts the File Explorer with the recycle bin folder.
|
||||
This script starts the File Explorer and shows 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 to show the repositories folder.
|
||||
This script starts the File Explorer and shows the user's Git repositories folder.
|
||||
.EXAMPLE
|
||||
PS> ./open-repos-folder
|
||||
.NOTES
|
||||
|
@ -1,8 +1,8 @@
|
||||
<#
|
||||
.SYNOPSIS
|
||||
Opens the File Explorer with the videos folder
|
||||
Opens the user's videos folder
|
||||
.DESCRIPTION
|
||||
This script starts the File Explorer to show the home folder.
|
||||
This script starts the File Explorer and shows the user's videos folder.
|
||||
.EXAMPLE
|
||||
PS> ./open-videos-folder
|
||||
.NOTES
|
||||
|
Loading…
Reference in New Issue
Block a user