Solved

End Explorer.exe

Posted on 2006-06-30
7
301 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
Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

 
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

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

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

There are many ways to remove duplicate entries in an SQL or Access database. Most make you temporarily insert an ID field, make a temp table and copy data back and forth, and/or are slow. Here is an easy way in VB6 using ADO to remove duplicate row…
Introduction In a recent article (http://www.experts-exchange.com/A_7811-A-Better-Concatenate-Function.html) for the Excel community, I showed an improved version of the Excel Concatenate() function.  While writing that article I realized that no o…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
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…

815 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

8 Experts available now in Live!

Get 1:1 Help Now