

If you are stuck or need some help, send an email, and I will try to help as much as possible.The easiest way to kill a program on Windows is to via the Alt + F4 shortcut. I hope this simple and easy Windows how-to guide helped you. It is that simple to close all Windows at once with a shortcut. All Windows except File Explorer should close immediately. Now, rename the file to “CloseAllWindows.bat.”ĭouble-click on the file to execute it. Open the text file and paste the below script into it. Right-click on the desktop and choose “New > Text Document” to create a new text file. If you are OK with the drawbacks, follow the below steps. Moreover, there are quite a few exceptions where the script doesn’t work as it should. However, the drawback of the script is that it doesn’t close File Explorer windows and is pretty slow.

If you don’t want to use AutoHotKey, you can use a PowerShell command in a batch file to close all open windows. It will not close applications minimized to the taskbar corner/corner overflow menu. This action starts the script, and it runs silently in the background.Īs long as the script is running in the background, press “F3” to close all open windows. ahk.Īfter renaming the file, double-click on it. Next, rename the file to “CloseAllWindows.ahk.” If you are wondering, you can name the file whatever you want. WinGetTitle, this_title, ahk_id %this_id%Īfter saving the file, close it. If you want to use another shortcut of your choice, I recommend you take a look at the AutoHotKey Hotkeys documentation - Close all Windows with a keyboard shortcut (F3) Now, paste the below script into the text file. To do that, right-click on the desktop and choose “New > Text Document.” This action creates a new blank text document.ĭouble-click on the newly created text file. Now, we need to create the AutoHotKey script.

The AutoHotKey script is running in the background.įirst, download and install AutoHotKey in Windows if it is not already installed.Rename the file to “CloseAllWindows.ahk.”.Get and install the AutoHotKey software.Here is how to create and use the AutoHotKey script to close all windows with a shortcut.
