Solved

End Explorer.exe

Posted on 2006-06-30
7
299 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
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
How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

 
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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
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…

708 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now