All answers I could quickly find on this topic involve either the tip Molly gave or using an application (or coding it yourself). For example (I haven't tried this), Close All Windows.
Also, by pressing Ctrl + Shift + Esc you get the Windows Task Manager, where you can see all running applications at once (among other things), select them, and End Task them.
Answer from Adriano Varoli Piazza on Stack ExchangeAll answers I could quickly find on this topic involve either the tip Molly gave or using an application (or coding it yourself). For example (I haven't tried this), Close All Windows.
Also, by pressing Ctrl + Shift + Esc you get the Windows Task Manager, where you can see all running applications at once (among other things), select them, and End Task them.
I like to see my open windows ungrouped, but realized that this i.e. closing multiple windows at once was a problem with such a setting. A less time-taking method would be to use the command line like this :
taskkill /im explorer.exe -f
And then restart explorer using :
explorer
Caution : This will cause processes like file copying on the default Windows interface to abort.
Quickly close all windows at once
Easy Keyboard Shortcut to actually close a program?
Close all apps.
Doesn’t Apple recommend NOT closing apps?
More on reddit.comHow to close all windows at once
Videos
I'm doing some testing and frequently need to gracefully close all open apps either before running a program or rebooting. The batch file and PowerShell methods I've tried shut down chrome improperly, so I need to restore all open tabs. I want to simulate closing the app manually.
The main apps I typically have open are Chrome, Word, Titan Mail, Thunderbird, an image management program, Photoshop, possibly other Office or Adobe programs, and Notepad.
The fastest native solution seems to be Win + Tab and then middle-click the Apps to close them.
The best 3rd party solution I found is 7+ Taskbar Tweaker. You can configure it to close Tasks by middle-click to the tasks entry immediately in the task bar. Unfortunately, Taskbar Tweaker seems to be tailor-fit very closely to Windows and broke with every major update (Anniversary, Creator). The maintainer each time fixed it within some weeks, but meanwhile everything defaults to the old behavior of opening new instances instead of closing old ones.
In my case, I simply open the task manager, then in the tab Application, I select the Apps to close, then I click the End task button.
Depending upon the application and the layout of the menu in the application you may be able to press ALT + F followed by the X key. ALT + F opens the file menu and then X will exit the application. If this does not work look for a quit or exit button on the menu bar and press the corresponding underlined key. This should do the trick for you.
Yes, there is. It's Alt+F4.
This is the key combination to end a program. The only reason it doesn't work as advertised is ignorant programmers who refuse to follow Microsoft design guidelines.
This problem would persist with any other hotkey as well. You could only possibly create a custom solution with AutoHotKey (or similar tools) that kills the process. But this would most likely make you lose a lot of work. As that is quite the brute force method to exit a process.
I want to know more!
OK, to my understanding, there are several ways a Windows application can be terminated.
- Posting a
WM_CLOSEwindow message to the main application window. - Destroying the main application window.
- Terminating the process.
The first way is the clean way. The way you're intended to close an application. This is the same thing that Alt+F4 works. Pressing Alt+F4 will just send the WM_CLOSE message to the application window.
Now, let's look at all 3 ways in reverse order.
Terminating a process
In Windows, an application lives in a process. Inside that process, the application may create a window. The window is what you will see on your desktop and what you will interact with.
So, if the process is the root of an application, if you terminate it, everything else will go away as well. So this would be great to fully end an application. But this will kill the application so abruptly, that it will have no chance to save any critical data to disk.
So this would not be recommended!
Destroying the main application window
As we just learned, the main application window is just part of the process. So if we just destroy that window, we'll still have the process stinking up the place :(
And that would be even harder to get rid off than the application would have been.
This is most likely the nastiest approach to trying to end an application. Stay far away!
Posting a WM_CLOSE message
Windows is a message-based operating system. Meaning, components talk to each other by sending each other little messages.
One of these messages is the WM_CLOSE message.
If an application receives this message, it is agreed upon, that this application should seize all action and then life.
But every programmer can decide on his or her own how to handle the message.
As the documentation told us earlier, the default behavior would be to call DestroyWindow and, thus perform our application exit approach #2.
With the little difference that, this time, it's intentional and the program has every chance to save critical data.
Conclusion
So, as you can see, we're pretty much at the mercy of every programmer here. Or we take the risk of losing data (you don't want to take that risk!).
I’m making a new shortcut for when I arrive at work and I need to force close all running apps. Is this even possible?