From 4fecb9c0f53fd05a5834aede0e36149b0ba33572 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benedikt=20Sch=C3=A4chner?= Date: Mon, 7 Aug 2023 12:32:02 +0200 Subject: [PATCH] Add files via upload --- commands/open_app/open_explorer.py | 8 ++++++++ commands/open_app/open_taskmanager.py | 8 ++++++++ 2 files changed, 16 insertions(+) create mode 100644 commands/open_app/open_explorer.py create mode 100644 commands/open_app/open_taskmanager.py diff --git a/commands/open_app/open_explorer.py b/commands/open_app/open_explorer.py new file mode 100644 index 0000000..3dd62d7 --- /dev/null +++ b/commands/open_app/open_explorer.py @@ -0,0 +1,8 @@ +import os +from tkinter import messagebox + +def open_explorer(): + try: + os.system("start explorer") + except Exception as e: + messagebox.showerror("Error", f"Error opening Microsoft Windows Explorer: {e}") diff --git a/commands/open_app/open_taskmanager.py b/commands/open_app/open_taskmanager.py new file mode 100644 index 0000000..f8621eb --- /dev/null +++ b/commands/open_app/open_taskmanager.py @@ -0,0 +1,8 @@ +import os +from tkinter import messagebox + +def open_windows_taskmanager(): + try: + os.system("start taskmgr") # Command to open Microsoft Excel + except Exception as e: + messagebox.showerror("Error", f"Error opening Windows Task-Manager: {e}")