mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-08-10 13:27:41 +02:00
Updated the open-*.ps1 scripts
This commit is contained in:
@ -4,13 +4,15 @@
|
||||
.DESCRIPTION
|
||||
This script launches the File Explorer with the user's home folder.
|
||||
.EXAMPLE
|
||||
PS> ./open-home-folder
|
||||
PS> ./open-home-folder.ps1
|
||||
.LINK
|
||||
https://github.com/fleschutz/PowerShell
|
||||
.NOTES
|
||||
Author: Markus Fleschutz | License: CC0
|
||||
#>
|
||||
|
||||
#requires -version 5.1
|
||||
|
||||
try {
|
||||
$TargetDir = resolve-path "$HOME"
|
||||
if (-not(test-path "$TargetDir" -pathType container)) {
|
||||
|
Reference in New Issue
Block a user