DonationCoder.com forum
 
Read-only archive. This is a static copy of the DonationCoder.com forum. Reading and searching work as before; logging in, posting and private messages do not.
Archive of 2026-10-21 · About this archive · Main site

Author Topic: DONE: Close all opened explorer windows  (Read 8,117 times)

Contro

  • Supporting Member
  • Joined in 2007
  • **
  • Posts: 3,947
DONE: Close all opened explorer windows
« on: May 26, 2012, 10:39 PM »
Close all opened explorer windows

I would a script for closing all the explorer windows with ease

Windows xp pro sp3
Best Regards

:-*

rgdot

  • Supporting Member
  • Joined in 2009
  • **
  • Posts: 2,197
Re: DONE: Close all opened explorer windows
« Reply #1 on: May 26, 2012, 11:04 PM »
Have never tested it but

Close All Open Windows with a Single Click
http://www.ntwind.com/software/utilities/close-all.html

MilesAhead

  • Supporting Member
  • Joined in 2009
  • **
  • Posts: 7,736
    • Coding Snacks
Re: DONE: Close all opened explorer windows
« Reply #2 on: May 26, 2012, 11:11 PM »
Code
#NoTrayIcon
#NoEnv  ; Recommended for performance and compatibility with future AutoHotkey releases.
SendMode Input  ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir%  ; Ensures a consistent starting directory.
DetectHiddenWindows, On
GroupAdd,ExplorerGroup, ahk_class CabinetWClass
GroupAdd,ExplorerGroup, ahk_class ExploreWClass

while WinExist("ahk_group ExplorerGroup")
{
	WinClose,ahk_group ExplorerGroup
}

Run it and Explorer windows are gone.

Contro

  • Supporting Member
  • Joined in 2007
  • **
  • Posts: 3,947
Re: DONE: Close all opened explorer windows
« Reply #3 on: May 26, 2012, 11:25 PM »
:-*
Going running
Best Regards

Contro

  • Supporting Member
  • Joined in 2007
  • **
  • Posts: 3,947
Re: DONE: Close all opened explorer windows
« Reply #4 on: May 26, 2012, 11:28 PM »
It WORKSSSSSSS
IT WORKSSSSSSS !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!1
:P+

Thank a lot.

Original address: https://www.donationcoder.com/forum/index.php?topic=31130.0