Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Close all IE browsers
#3
Solved: 10 Years, 10 Months ago
Hi,

You can use the below function. This will close any process running in task bar. All you need to do is to pass the process name.

Code:
Public Function CloseProcess(strProgramName)
   Dim objShell
    Set objShell = CreateObject("WScript.Shell")
    objShell.Run "TASKKILL /F /IM " & strProgramName
    Set objShell = Nothing
End Function
Regards,
Ankesh
Reply


Messages In This Thread
Close all IE browsers - by bend0303 - 01-22-2012, 03:48 PM
RE: Close all IE browsers - by vIns - 01-22-2012, 08:11 PM
RE: Close all IE browsers - by Ankesh - 01-23-2012, 10:34 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Maximize and Close a Browser mv8167 4 16,128 03-26-2023, 03:55 PM
Last Post: Mike B
  Close popup ad windows dustwynn 1 2,770 10-25-2016, 05:57 PM
Last Post: Ankur
  [UFT] Close opened folder robertosalemi 1 3,176 02-10-2016, 07:06 PM
Last Post: robertosalemi
  Close browser code not working akilamurugesh 1 4,480 08-26-2014, 03:21 PM
Last Post: vinod123
  Close on Exit Issue in QTP 11.0 EGBELL 1 3,079 02-02-2014, 03:39 PM
Last Post: EGBELL

Forum Jump:


Users browsing this thread: 1 Guest(s)