20
3
My workflow includes many open windows. Sometimes I want to clean up and close around 10 of them (but not all). How can I achieve this fast and simple on Windows?
Edit: "but not all" to me means "selectively", not grouped by program or name, and not always the same. During research phase, I usually have opened some diff tools, some console windows, some svn logs, some explorer windows and some plain text editors. I permanently have and keep opened a mail program, an IDE, the spreadsheet where I record my time spent and a browser. Opening huge projects in the IDE takes time, so I don't want to a killall or log-off-log-on procedure.
1I was going to say "Use a virtual desktop manager", but realized none of them that are able to close several windows at once are supported on windows 10. – Dmitry Grigoryev – 2017-04-25T15:34:49.730
1If you always maximize your windows instead of having hundreds of windowed windows, then the close button is always in the same location. Alt+F4 is the old standby for closing a window on Windows. If you don't care about saving anything and always close the same set of windows, the absolute fastest way is to use OpenProcess()/KillProcess() in a command-line program/script. If you are closing windows to access the desktop, there are two faster ways: The little-known Desktop Toolbar you can enable from the taskbar (should be enabled by default, IMO) and Win+M / Win+Shift+M. – CubicleSoft – 2017-04-26T03:35:05.673
I prefer the Ctrl + W. It closes like the ALT + F4 – Roy Bogado – 2017-04-26T08:37:37.140
2^w very much depends on the applications. Many act in that fashion, especially software using MDI, but I would say caveat emptor – Alt+F4 is the platfrom standard "close program" shortcut and in my experience more reliable. (Although ^w is much more comfortable to type on QWERTlike keyboards.) – Cornelius – 2017-04-26T09:43:30.653
1@Roy Ctrl-W sometimes works as Alt-F4, sometimes as Ctrl-F4 depending on the software (mind you, so does Alt-F4) – Chris H – 2017-04-26T13:33:01.057
Is there any kind of pattern to the ones you want to kill? You might be able to build a batch script around
TASKKILL
with all its myriad options to kill the ones you want (and you can create a shortcut to the.bat
and give it a hotkey). If some of the windows are command-prompts, judicial use of the "title" option ofSTART
can help (asTASKKILL
can select by title). In my case, I have three command-line servers and two GUI clients that I can kill in one go with a small script. – TripeHound – 2017-04-26T16:52:59.757Agreeing with @TripeHound. Or in PowerShell,
Stop-Process
. – xdhmoore – 2017-04-26T17:53:08.237This very much depends on how you specify "but not all" ... – Hagen von Eitzen – 2017-04-26T18:45:43.830
1Step 1: Be fast. Step 2: Click on the red X for the apps you want to close? – airstrike – 2017-04-27T12:57:00.077
1and remember as well as Andre Terras advice, move the mouse fast and hit the button hard: makes it more effective :P – GMasucci – 2017-04-27T15:03:18.433