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