November 13th, 2002, 03:52 PM
vb close desktop windows - newie help
i'm totally new to VB Scripting but am hoping someone can lead me on the right track. basically i need a script that when executed will close all open windows on the windows desktop, this includes any opened copies of windows explorer too.
can anyone help me out with the script for this? or even just point me on the right direction. i would be really greatful . . .thanks in advance.
November 17th, 2002, 12:06 PM
So are you asking about VB or VBScript, they aren't really the same thing.
You can do this with VB by looping through the window handles and sending a close message to them all.
I have no idea if you can do that with vbscript, I really doubt it though.
November 17th, 2002, 05:16 PM
thanks for the feedback, and yes it is vb i am asking about. i tried looping through a close windows statement but it just delays my application too much. thanks for the feedback though, cheers,