08-22-2008, 09:15 PM
@sunny rao: There is a huge difference between explorer.exe and iexplore.exe. While the former refers to Windows explorer the latter is for Intenet Explorer and I believe it is the one you want to kill.
Never try to kill the explorer.exe which will for obvious reasons bring your system to stand still.
This code should work fine:
Never try to kill the explorer.exe which will for obvious reasons bring your system to stand still.
This code should work fine:
Code:
Set process = GetObject("winmgmts:\\")
Set allIExplorer = process.ExecQuery("Select * from Win32_Process Where Name = 'iexplore.exe'")
For Each IE in allIExplorer
IE.Terminate()
Next
Want to fast track your QTP/UFT Learning? Join our UFT Training Course