mirror of
https://github.com/fleschutz/PowerShell.git
synced 2024-11-08 17:14:28 +01:00
Add open-c-drive.ps1
This commit is contained in:
parent
d7e954417d
commit
7bdaef5002
@ -158,6 +158,7 @@ moon.ps1, Prints the current moon phase
|
||||
mute-audio.ps1, Mutes the audio device
|
||||
open-browser.ps1, Starts the default Web browser
|
||||
open-calculator.ps1, Starts the calculator program
|
||||
open-c-drive.ps1, Opens the C: drive folder
|
||||
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
|
||||
|
Can't render this file because it has a wrong number of fields in line 91.
|
26
Docs/open-c-drive.md
Normal file
26
Docs/open-c-drive.md
Normal file
@ -0,0 +1,26 @@
|
||||
## open-c-drive.ps1 - Opens the C: drive folder
|
||||
|
||||
This script starts the File Explorer and shows the C: drive folder.
|
||||
|
||||
## Parameters
|
||||
```powershell
|
||||
open-c-drive.ps1 [<CommonParameters>]
|
||||
|
||||
[<CommonParameters>]
|
||||
This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction,
|
||||
WarningVariable, OutBuffer, PipelineVariable, and OutVariable.
|
||||
```
|
||||
|
||||
## Example
|
||||
```powershell
|
||||
PS> ./open-c-drive
|
||||
|
||||
```
|
||||
|
||||
## 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-c-drive.ps1*
|
@ -113,6 +113,7 @@ Mega Collection of PowerShell Scripts
|
||||
| [new-email.ps1](Scripts/new-email.ps1) | Starts the default email client to write a new email | [Help](Docs/new-email.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-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-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) |
|
||||
|
20
Scripts/open-c-drive.ps1
Executable file
20
Scripts/open-c-drive.ps1
Executable file
@ -0,0 +1,20 @@
|
||||
<#
|
||||
.SYNOPSIS
|
||||
Opens the C: drive folder
|
||||
.DESCRIPTION
|
||||
This script starts the File Explorer and shows the C: drive folder.
|
||||
.EXAMPLE
|
||||
PS> ./open-c-drive
|
||||
.NOTES
|
||||
Author: Markus Fleschutz · License: CC0
|
||||
.LINK
|
||||
https://github.com/fleschutz/PowerShell
|
||||
#>
|
||||
|
||||
try {
|
||||
& "$PSScriptRoot/open-file-explorer.ps1" C:
|
||||
exit 0 # success
|
||||
} catch {
|
||||
"⚠️ Error: $($Error[0]) ($($MyInvocation.MyCommand.Name):$($_.InvocationInfo.ScriptLineNumber))"
|
||||
exit 1
|
||||
}
|
Loading…
Reference in New Issue
Block a user