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