Add open-notepad.ps1

This commit is contained in:
Markus Fleschutz 2021-10-23 16:29:54 +02:00
parent f07931b8b4
commit d7e954417d
4 changed files with 48 additions and 0 deletions

View File

@ -165,6 +165,7 @@ open-file-explorer.ps1, Opens the File Explorer
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
open-notepad.ps1, Starts the Notepad app
open-onedrive-folder.ps1, Opens the user's OneDrive folder
open-recycle-bin.ps1, Opens the user's recycle bin folder
open-repos-folder.ps1, Opens the user's Git repositories folder

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

26
Docs/open-notepad.md Normal file
View File

@ -0,0 +1,26 @@
## open-notepad.ps1 - Starts Notepad
This script starts Notepad.
## Parameters
```powershell
open-notepad.ps1 [<CommonParameters>]
[<CommonParameters>]
This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction,
WarningVariable, OutBuffer, PipelineVariable, and OutVariable.
```
## Example
```powershell
PS> ./open-notepad
```
## 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-notepad.ps1*

View File

@ -120,6 +120,7 @@ Mega Collection of PowerShell Scripts
| [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) |
| [open-notepad.ps1](Scripts/open-notepad.ps1) | Starts the Notepad app | [Help](Docs/open-notepad.md) |
| [open-onedrive-folder.ps1](Scripts/open-onedrive-folder.ps1)| Opens the user's OneDrive folder | [Help](Docs/open-onedrive-folder.md) |
| [open-recycle-bin.ps1](Scripts/open-recycle-bin.ps1) | Opens the user's recycle bin folder | [Help](Docs/open-recycle-bin.md) |
| [open-repos-folder.ps1](Scripts/open-repos-folder.ps1) | Opens the user's Git repositories folder | [Help](Docs/open-repos-folder.md) |

20
Scripts/open-notepad.ps1 Executable file
View File

@ -0,0 +1,20 @@
<#
.SYNOPSIS
Starts Notepad
.DESCRIPTION
This script starts Notepad.
.EXAMPLE
PS> ./open-notepad
.NOTES
Author: Markus Fleschutz · License: CC0
.LINK
https://github.com/fleschutz/PowerShell
#>
try {
start-process notepad.exe
exit 0 # success
} catch {
"⚠️ Error: $($Error[0]) ($($MyInvocation.MyCommand.Name):$($_.InvocationInfo.ScriptLineNumber))"
exit 1
}