Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Close down a program

Status
Not open for further replies.

clear88

Programmer
Nov 29, 2001
24
CN
hi there,

I am going to use WSH script to close my Internet Explorer.

any sample code? Cheers
 
you might want to use WMI:

Set oWmi = GetObject("winmgmts:{impersonationlevel=impersonate}!\\.\root\cimv2")
query = "Select * from Win32_Process Where name = 'IEXPLORER.EXE'"
Set wql = oWmi.execQuery(query)
For Each item In wql
item.terminate()
next
Set wql = Nothing
Set owmi = Nothing
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top