Open-PicturesFolder
Opens the user's pictures folder
#requires -version 5.1
try {
$TargetDir = Resolve-Path "$HOME/Pictures"
if (-not(test-path "$TargetDir" -pathType container)) {
throw "Pictures folder at ??$TargetDir doesn't exist (yet)"
}
& "$PSScriptRoot/open-file-explorer.ps1" "$TargetDir"
exit 0 # success
} catch {
"?? ERROR: $($Error[0]) (script line $($_.InvocationInfo.ScriptLineNumber))"
exit 1
}This script has no configurable parameters.