06-19-2012, 05:30 PM
I think Description.Create does not support in .vbs file as it belongs to QTP.
Try below code to close all browsers thru .vbs file
Try below code to close all browsers thru .vbs file
Code:
Set objWMIService = GetObject("winmgmts:\\.\root\cimv2")
Set colProcesses = objWMIService.ExecQuery( "Select * from Win32_Process where name = 'iexplore.exe'")
For Each objProcess in colProcesses
objprocess.terminate
Next
Set colProcesses = Nothing
Set objWMIService = Nothing