From 9c7a29cc8c99fc8169be54fa671d0a5c2739bd3a Mon Sep 17 00:00:00 2001 From: Markus Fleschutz Date: Sun, 2 May 2021 11:07:39 +0200 Subject: [PATCH] Add open-recycle-bin.ps1 --- Data/scripts.csv | 1 + README.md | 1 + Scripts/open-recycle-bin.ps1 | 14 ++++++++++++++ 3 files changed, 16 insertions(+) create mode 100755 Scripts/open-recycle-bin.ps1 diff --git a/Data/scripts.csv b/Data/scripts.csv index ff828101..27cc288a 100644 --- a/Data/scripts.csv +++ b/Data/scripts.csv @@ -133,6 +133,7 @@ open-browser.ps1, starts the default Web browser open-calculator.ps1, starts the calculator program open-email-client.ps1, starts the default email client open-file-explorer.ps1, starts the Microsoft File Explorer +open-recycle-bin.ps1, starts the File Explorer with the recycle bin folder play-beep.ps1, plays a beep sound play-files.ps1, plays the given audio files play-mission-impossible.ps1, plays the Mission Impossible theme diff --git a/README.md b/README.md index 697e24bc..282a0d36 100644 --- a/README.md +++ b/README.md @@ -83,6 +83,7 @@ Mega Collection of PowerShell Scripts * [open-calculator.ps1](Scripts/open-calculator.ps1) - starts the calculator program * [open-email-client.ps1](Scripts/open-browser.ps1) - starts the default email client * [open-file-explorer.ps1](Scripts/open-file-explorer.ps1) - starts the File Explorer +* [open-recycle-bin.ps1](Scripts/open-recycle-bin.ps1) - starts the File Explorer with the recycle bin folder * [set-wallpaper.ps1](Scripts/set-wallpaper.ps1) - sets the given image as wallpaper * [take-screenshot.ps1](Scripts/take-screenshot.ps1) - takes a single screenshot * [take-screenshots.ps1](Scripts/take-screenshots.ps1) - takes multiple screenshots (every minute by default) diff --git a/Scripts/open-recycle-bin.ps1 b/Scripts/open-recycle-bin.ps1 new file mode 100755 index 00000000..783c6fa0 --- /dev/null +++ b/Scripts/open-recycle-bin.ps1 @@ -0,0 +1,14 @@ +<# +.SYNTAX open-recycle-bin.ps1 +.DESCRIPTION starts the File Explorer with the recycle bin folder +.LINK https://github.com/fleschutz/PowerShell +.NOTES Author: Markus Fleschutz / License: CC0 +#> + +try { + start shell:recyclebinfolder + exit 0 +} catch { + write-error "ERROR: line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])" + exit 1 +}