Solved

End Explorer.exe

Posted on 2006-06-30
7
303 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
Salesforce Has Never Been Easier

Improve and reinforce salesforce training & adoption using WalkMe's digital adoption platform. Start saving on costly employee training by creating fast intuitive Walk-Thrus for Salesforce. Claim your Free Account Now

 
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

Independent Software Vendors: 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!

Question has a verified solution.

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

I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
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.
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…
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…

734 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