Below is a vb script that will destroy any Iexplore.exe processes. It works
fine but is there a way to determine which ones not destroy.

For example, lets say the following websites are currently open.

www.google.com
www.yahoo.com
www.microsoft.com

Is there a way to destory yahoo and google but leave the microsft site open.

We have a webapplication that is menu enabaled that launches several
websites. I want to be able to see if a website is open before intiaiting
another instance.


strWMIMoniker = "winmgmts:!//posdtdc357407b"
strQuery = "select * from Win32_Process where Name='iexplore.exe'"
WScript.Echo(strQuery)
For Each wmiProcess in GetObject(strWMIMoniker).ExecQuery(strQuery)
WScript.Echo wmiProcess.Name & " (" & wmiProcess.ProcessId & ") is being
terminated"
wmiProcess.Terminate
Next

Re: IExplore.exe by billy

billy
Sun Apr 10 20:49:26 CDT 2005

you might try to do this indirectly by modifying proxy settings. for
your example, if you send everything to 127.0.0.1 except for
*.microsoft.com, then you can brouse to anything at microsoft.com, but
nothing from google or yahoo (404 or no window).

how you modify your proxy settings depends on how and if you are using
a proxy now.

proxy modifications usually require local admin privs.