Solved

End Explorer.exe

Posted on 2006-06-30
7
304 Views
Last Modified: 2010-07-27
I need to be able to automatically temporarily end the explorer.exe system process at the click of a command button.
0
Comment
Question by:Sid_The_Kid
[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
7 Comments
 
LVL 5

Expert Comment

by:lunchbyte
ID: 17020615
Download the demp program and you can see how it is done. If you like what this can do then copy the codes that you need.

http://freevbcode.com/ShowCode.ASP?SearchString=kill%20process&ID=5543

0
 
LVL 9

Assisted Solution

by:justchat_1
justchat_1 earned 50 total points
ID: 17021547
thats overkill...try this:
http://www.vb-helper.com/howto_terminate_process.html

Just terminate explorer.exe
0
 
LVL 9

Expert Comment

by:justchat_1
ID: 17021550
If thats not what you had in mind here is a similar question:
http://www.experts-exchange.com/Programming/Programming_Languages/Visual_Basic/Q_20231530.html
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 8

Accepted Solution

by:
kaliyugkaarjun earned 150 total points
ID: 17022658
0
 
LVL 2

Author Comment

by:Sid_The_Kid
ID: 17022725
justchat_1, when I tried your first comment (which was a great example), it seemed to close windows based on their captions, instead of their exe names. Of course, explorer.exe does not have a real form, and therefore does have a caption. However, when I tired terminating a folder, explorer.exe shut down for about a second, and then started up again. The same thing happens with lunchbyte app.

kaliyugkaarjun, great link. I was fairly pissed when I didn't see your post while I was typing my response to previous comments, and then I decided to chk out your answer before posting, and then the program caused my ie window closed and I lost my response I just finished typing!! But I simply changed that if statement by adding a not and it closed explorer.exe, but as usual it only lasted for about one second before it boots up again. I have yet to see whether this is enough time for my program to do what it needs to do. If not, I will need to find a way to keep it closed before I can award points. So far kaliyugkaarjun researched way seems to be most reliable and easy to use.
0
 
LVL 9

Expert Comment

by:justchat_1
ID: 17023964
Explorer.exe automatically restarts in XP as part of a crash recovery feature...
0
 
LVL 2

Author Comment

by:Sid_The_Kid
ID: 17024224
Thats OK, I found a way for my program to work anyway --> It restarts the computer. Thanks everyone.
0

Featured Post

SharePoint Admin?

Enable Your Employees To Focus On The Core With Intuitive Onscreen Guidance That is With You At The Moment of Need.

Question has a verified solution.

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

Article by: Martin
Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

696 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