Add several scripts

This commit is contained in:
Markus Fleschutz
2021-11-03 16:46:35 +01:00
parent 535986d50f
commit e4aef680b8
4 changed files with 47 additions and 8 deletions

View File

@ -2,7 +2,7 @@
.SYNOPSIS
Opens the C: drive folder
.DESCRIPTION
This script launches the File Explorer showing the C: drive folder.
This script launches the File Explorer with the C: drive folder.
.EXAMPLE
PS> ./open-c-drive
.NOTES
@ -11,10 +11,5 @@
https://github.com/fleschutz/PowerShell
#>
try {
& "$PSScriptRoot/open-file-explorer.ps1" C:
exit 0 # success
} catch {
"⚠️ Error: $($Error[0]) ($($MyInvocation.MyCommand.Name):$($_.InvocationInfo.ScriptLineNumber))"
exit 1
}
& "$PSScriptRoot/open-file-explorer.ps1" "C:"
exit 0 # success