mazhar555
15 years agoContributor
Closing Internet Explorer
HI, i have written a routine to close all IE Instances before launching a new IE instance, this function is in the Script Extension, some times it works fine sometimes it throws VB Exception, can anyone suggest me some better solution.
Function CloseAllBrowser
IExplore = Sys.FindAllChildren("ProcessName","iexplore",2)
If UBound(IExplore)>=0 Then
For i = 0 to UBound(IExplore)
IExplore(i).Terminate
Next
End If
End Function
Regards,
Function CloseAllBrowser
IExplore = Sys.FindAllChildren("ProcessName","iexplore",2)
If UBound(IExplore)>=0 Then
For i = 0 to UBound(IExplore)
IExplore(i).Terminate
Next
End If
End Function
Regards,