mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-08-09 13:04:59 +02:00
Updated the manuals
This commit is contained in:
@ -1,26 +1,56 @@
|
||||
## open-notepad.ps1 - Starts Notepad
|
||||
Script: *open-notepad.ps1*
|
||||
========================
|
||||
|
||||
This script launches the Notepad application.
|
||||
This PowerShell script launches the Notepad application.
|
||||
|
||||
## Parameters
|
||||
Parameters
|
||||
----------
|
||||
```powershell
|
||||
/home/markus/Repos/PowerShell/Scripts/open-notepad.ps1 [<CommonParameters>]
|
||||
PS> ./open-notepad.ps1 [<CommonParameters>]
|
||||
|
||||
[<CommonParameters>]
|
||||
This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction,
|
||||
WarningVariable, OutBuffer, PipelineVariable, and OutVariable.
|
||||
```
|
||||
|
||||
## Example
|
||||
Example
|
||||
-------
|
||||
```powershell
|
||||
PS> ./open-notepad
|
||||
PS> ./open-notepad.ps1
|
||||
|
||||
```
|
||||
|
||||
## Notes
|
||||
Author: Markus Fleschutz · License: CC0
|
||||
Notes
|
||||
-----
|
||||
Author: Markus Fleschutz | License: CC0
|
||||
|
||||
## Related Links
|
||||
Related Links
|
||||
-------------
|
||||
https://github.com/fleschutz/PowerShell
|
||||
|
||||
*Generated by convert-ps2md.ps1 using the comment-based help of open-notepad.ps1*
|
||||
Script Content
|
||||
--------------
|
||||
```powershell
|
||||
<#
|
||||
.SYNOPSIS
|
||||
Launches the Notepad app
|
||||
.DESCRIPTION
|
||||
This PowerShell script launches the Notepad application.
|
||||
.EXAMPLE
|
||||
PS> ./open-notepad.ps1
|
||||
.LINK
|
||||
https://github.com/fleschutz/PowerShell
|
||||
.NOTES
|
||||
Author: Markus Fleschutz | License: CC0
|
||||
#>
|
||||
|
||||
try {
|
||||
Start-Process notepad.exe
|
||||
exit 0 # success
|
||||
} catch {
|
||||
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
|
||||
exit 1
|
||||
}
|
||||
```
|
||||
|
||||
*(generated by convert-ps2md.ps1 using the comment-based help of open-notepad.ps1 as of 08/15/2024 09:50:52)*
|
||||
|
Reference in New Issue
Block a user