From ba797057cf273cb4f9e46b59e86ffc6a291d8d65 Mon Sep 17 00:00:00 2001 From: CrispyPin Date: Mon, 26 Jun 2023 11:52:23 +0200 Subject: [PATCH] add ahk script for restarting explorer --- windows/restart_explorer.ahk | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 windows/restart_explorer.ahk diff --git a/windows/restart_explorer.ahk b/windows/restart_explorer.ahk new file mode 100644 index 0000000..45606d3 --- /dev/null +++ b/windows/restart_explorer.ahk @@ -0,0 +1,9 @@ +#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases. +; #Warn ; Enable warnings to assist with detecting common errors. +SendMode Input ; Recommended for new scripts due to its superior speed and reliability. +SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory. + +#^r:: + RunWait taskkill /f /im explorer.exe + Run explorer.exe +return