?
Solved

Closing Internet Explorer

Posted on 2003-03-22
2
Medium Priority
?
150 Views
Last Modified: 2010-05-01
Greetings! I need some reliable code that will close any open Internet Explorer windows. I need it to work on Windows 95/98/ME/NT/2000/XP and not produce any error messages. Should be a pretty simple task.

Thanks!
Eric
0
Comment
Question by:ericl1st
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 

Accepted Solution

by:
Chimo earned 285 total points
ID: 8188001
Here a link with code and explanation on how to kill an application gently:

Full code:
http://msdn.microsoft.com/librarylibrary/en-us/dnvsm01/html/dd0109list3.asp

Theory behind the code:
http://msdn.microsoft.com/library/en-us/dnvsm01/html/dt0109.asp

That closing process method need a process id (PID).  You have to give the pid of every internet explorer app runing.  It seem that the process is always named iexplorer.exe.

To find each process running, you can use that code (will not work on NT):
http://www.mvps.org/vbnet/index.html?code/system/toolhelpprocesses.htm
0
 

Expert Comment

by:CleanupPing
ID: 8531819
Hi ericl1st,
This old question (QID 20559798) needs to be finalized -- accept an answer, split points, or get a refund.  Please see http://www.cityofangels.com/Experts/Closing.htm for information and options.
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction While answering a recent question (http://www.experts-exchange.com/Q_27402310.html) in the VB classic zone, I wrote some VB code in the (Office) VBA environment, rather than fire up my older PC.  I didn't post completely correct code o…
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
Suggested Courses

764 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question