Re: enumerating top level windows
From: Torgeir Bakken \(MVP\) (Torgeir.Bakken-spam_at_hydro.com)
Date: 07/06/04
- Next message: Alex K. Angelopoulos [MVP]: "Re: enumerating top level windows"
- Previous message: Gary Roach: "enumerating top level windows"
- In reply to: Gary Roach: "enumerating top level windows"
- Next in thread: Alex K. Angelopoulos [MVP]: "Re: enumerating top level windows"
- Messages sorted by: [ date ] [ thread ]
Date: Tue, 06 Jul 2004 20:27:02 +0200
Gary Roach wrote:
> i want to enumerate top level windows using a script. i've already looked at
> Karl Peterson's site for vb
> (http://www.mvps.org/vb/index2.html?samples.htm). i'm wondering if the same
> thing can be accomplished using wmi. all i can find is the ability to
> enumerate processes. i want top level windows so that i can close apps. any
> idea how to do this? thanks,
Hi
Nothing builtin you can access from a script can do this.
Here us two free command line utilities you can e.g. run from a network
share, nothing needs to be installed on the local computer if you don't
want to. You can e.g. redirect the output to a temporary file and parse
it from your vbscript.
CMDOW Commandline Window Utility (with /T: List only the windows shown
on the taskbar)
http://www.commandline.co.uk/cmdow/index.html
Enum.exe in the Command Line Tools (CMDLINE.ZIP), lists all visible
top-level windows
http://www.cmdtools.com/
-- torgeir, Microsoft MVP Scripting and WMI, Porsgrunn Norway Administration scripting examples and an ONLINE version of the 1328 page Scripting Guide: http://www.microsoft.com/technet/community/scriptcenter/default.mspx
- Next message: Alex K. Angelopoulos [MVP]: "Re: enumerating top level windows"
- Previous message: Gary Roach: "enumerating top level windows"
- In reply to: Gary Roach: "enumerating top level windows"
- Next in thread: Alex K. Angelopoulos [MVP]: "Re: enumerating top level windows"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|