mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-08-13 14:37:19 +02:00
Add some open-*-folder.ps1 scripts
This commit is contained in:
20
Scripts/open-recycle-bin-folder.ps1
Executable file
20
Scripts/open-recycle-bin-folder.ps1
Executable file
@ -0,0 +1,20 @@
|
||||
<#
|
||||
.SYNOPSIS
|
||||
Opens the recycle bin folder
|
||||
.DESCRIPTION
|
||||
This script launches the File Explorer with the user's recycle bin folder.
|
||||
.EXAMPLE
|
||||
PS> ./open-recycle-bin-folder
|
||||
.NOTES
|
||||
Author: Markus Fleschutz · License: CC0
|
||||
.LINK
|
||||
https://github.com/fleschutz/PowerShell
|
||||
#>
|
||||
|
||||
try {
|
||||
start shell:recyclebinfolder
|
||||
exit 0 # success
|
||||
} catch {
|
||||
"⚠️ Error: $($Error[0]) ($($MyInvocation.MyCommand.Name):$($_.InvocationInfo.ScriptLineNumber))"
|
||||
exit 1
|
||||
}
|
Reference in New Issue
Block a user