Thursday, February 26, 2009

Close All Active Browsers

Hi All,
In this post, I am providing the couple of ways for closing all the active browsers .
Say there are '5' browsers which are opened.

Soultion 1 :
While Browser("CreationTime:=0").Exist
Browser("CreationTime:=0").Close
Wend

Solution 2:
systemutil.CloseProcessByName "iexplore.exe"

Output :
All 5 browsers will be closed......

Have a nice day folks.............

No comments:

Post a Comment