command line to shutdown internet explorer

F

Frank Saunders, MS-MVP OE/WM

spinkid said:
Does anyone know how to shutdown Internet Explorer 7.0 from the
command-line?

Yes. Write this down so you can remember it:

shutdown

Use
shutdown /?
in a command box to see all the switches available.
 
G

Guest

This command only shuts down the computer. I just want to shutdown an open
Interent Explorer window not reboot the computer.
 
G

Guest

Thanks that worked. However I also found some vbs code that would work as
well.

strComputer = "."
Set objWMIService = GetObject("winmgmts:" _
& "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2")

Set colProcessList = objWMIService.ExecQuery _
("Select * from Win32_Process Where Name = 'iexplore.exe'")

For Each objProcess in colProcessList
objProcess.Terminate()
Next
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top