Update the comment based header

This commit is contained in:
Markus Fleschutz
2022-09-06 21:42:04 +02:00
parent 931a692848
commit c1317242a8
335 changed files with 460 additions and 465 deletions

View File

@ -5,15 +5,15 @@
This script launches the File Explorer with the user's videos folder.
.EXAMPLE
PS> ./open-videos-folder
.NOTES
Author: Markus Fleschutz · License: CC0
.LINK
https://github.com/fleschutz/PowerShell
.NOTES
Author: Markus Fleschutz | License: CC0
#>
try {
$TargetDir = resolve-path "$HOME/Videos"
if (-not(test-path "$TargetDir" -pathType container)) {
$TargetDir = Resolve-Path "$HOME/Videos"
if (-not(Test-Path "$TargetDir" -pathType container)) {
throw "Videos folder at 📂$TargetDir doesn't exist (yet)"
}
& "$PSScriptRoot/open-file-explorer.ps1" "$TargetDir"