From a6a8a46be764064e6a8c7f241472a1972035f9dd Mon Sep 17 00:00:00 2001 From: N11rm44L 7w44711 <60023424+niirmaaltwaatii@users.noreply.github.com> Date: Sat, 15 Oct 2022 07:28:44 +0545 Subject: [PATCH] Create erb.py --- scripts/Empty Recycle Bin/erb.py | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 scripts/Empty Recycle Bin/erb.py diff --git a/scripts/Empty Recycle Bin/erb.py b/scripts/Empty Recycle Bin/erb.py new file mode 100644 index 0000000..5ff7ceb --- /dev/null +++ b/scripts/Empty Recycle Bin/erb.py @@ -0,0 +1,6 @@ +import winshell +try: + cmd = winshell.recycle_bin().empty(confirm=False, sound=True) + print("Recycle bin is emptied now !") +except cmd: + print("Recycle bin was already empty !")