#1
  1. No Profile Picture
    Banned
    Devshed Newbie (0 - 499 posts)

    Join Date
    Feb 2002
    Posts
    20
    Rep Power
    0

    Exclamation vb close desktop windows - newie help


    hi guys,

    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.

    scott
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Novice (500 - 999 posts)

    Join Date
    Apr 2002
    Posts
    693
    Rep Power
    26
    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.
  4. #3
  5. No Profile Picture
    Banned
    Devshed Newbie (0 - 499 posts)

    Join Date
    Feb 2002
    Posts
    20
    Rep Power
    0

    windows close....


    hedge,

    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,

    scott

IMN logo majestic logo threadwatch logo seochat tools logo