Can I create a command that i can use in a shortcut that will close all open widows with one simple click?
Thanks
Simon
![]() |
Patch reliability is unclear. Unless you have an immediate, pressing need to install a specific patch, don't do it. |
SIGN IN | Not a member? | REGISTER | PLUS MEMBERSHIP |
Home » Forums » AskWoody support » Windows » Windows – other » Close all open windows
Not quite what you’re after, but if you hold down CTRL and click all the icons in the task bar one by one, this will “select” them all. When you get to the last one (still with CTRL pressed) right-click it and select Close. This will close the lot. No use for stuff in the system tray though, I’m afraid.
Alan
Not quite what you’re after, but if you hold down CTRL and click all the icons in the task bar one by one, this will “select” them all. When you get to the last one (still with CTRL pressed) right-click it and select Close. This will close the lot. No use for stuff in the system tray though, I’m afraid.
Alan
If you’re up for a little “script” training, you might want to take a look at AutoIt. I haven’t tried it on YOUR question, but I think you could create a looping script to get the title of the Active Window, close it, loop the script until there are no more active windows and quit. AutoIt is a fun program to play around with and I’m still using it to automate my nightly file backups.
If you’re up for a little “script” training, you might want to take a look at AutoIt. I haven’t tried it on YOUR question, but I think you could create a looping script to get the title of the Active Window, close it, loop the script until there are no more active windows and quit. AutoIt is a fun program to play around with and I’m still using it to automate my nightly file backups.
These are all the XP shortcut keys that Microsoft knows about. I don’t know whether any of these would assist? Alt-F4 goes some way towards what you want… But you may want to End It All (as above)!
These are all the XP shortcut keys that Microsoft knows about. I don’t know whether any of these would assist? Alt-F4 goes some way towards what you want… But you may want to End It All (as above)!
Simon–
This may not be “all that” you’re after, but you can use Alt+Shift+F4 to close the current IE Window and all the parent windows in one easy step. To close a folder and all parent folders, hold down Shift while hitting the folder’s close box or use the above 3 keys.
Ed. by SMBP: As John is saying, Alt +F4 will close the current window.
SMBP
Simon–
This may not be “all that” you’re after, but you can use Alt+Shift+F4 to close the current IE Window and all the parent windows in one easy step. To close a folder and all parent folders, hold down Shift while hitting the folder’s close box or use the above 3 keys.
Ed. by SMBP: As John is saying, Alt +F4 will close the current window.
SMBP
Donations from Plus members keep this site going. You can identify the people who support AskWoody by the Plus badge on their avatars.
AskWoody Plus members not only get access to all of the contents of this site -- including Susan Bradley's frequently updated Patch Watch listing -- they also receive weekly AskWoody Plus Newsletters (formerly Windows Secrets Newsletter) and AskWoody Plus Alerts, emails when there are important breaking developments.
Welcome to our unique respite from the madness.
It's easy to post questions about Windows 11, Windows 10, Win8.1, Win7, Surface, Office, or browse through our Forums. Post anonymously or register for greater privileges. Keep it civil, please: Decorous Lounge rules strictly enforced. Questions? Contact Customer Support.
Want to Advertise in the free newsletter? How about a gift subscription in honor of a birthday? Send an email to sb@askwoody.com to ask how.
Mastodon profile for DefConPatch
Mastodon profile for AskWoody
Home • About • FAQ • Posts & Privacy • Forums • My Account
Register • Free Newsletter • Plus Membership • Gift Certificates • MS-DEFCON Alerts
Copyright ©2004-2025 by AskWoody Tech LLC. All Rights Reserved.
Notifications