Windows 7 Forums


Reply
Thread Tools

Kill Explorer.exe on the fly

 
 
Elmer BeFuddled Elmer BeFuddled is offline
Resident eejit
Elmer BeFuddled's Avatar
Join Date: Jun 2010
Location: Durham UK
Posts: 1,050
Thanked: 203
Send a message via Skype™ to Elmer BeFuddled
 
      10-24-2010
If you're into modifying system files etc. you'll soon get fed up of logging out/in or using Task Manager to stop and re-start Explorer.exe all the time. Even if Explorer has died and you can r-click the desktop this will save you logging out/in.

Here's the handy alternative:-

How to Kill and Revive Explorer.exe using the Context Menu.

First, make yourself a .bat file (make a New Text Document.txt, then when you save it change .txt file extension to .bat) and call it KILL EXPLORER OR WHATEVER YOU WANT.bat and enter and save this text code:-
Code:
@echo off

taskkill /f /im explorer.exe
sleep 4
start explorer.exe
The 4 is adjustable, giving a slight sleep (4 is 3 secs, 6 is 5 secs, 2 is 1 secs etc. 1 is 0 secs but it makes your monitor look like it's popping!!(not advisable!)).
Then make yourself a .reg file (as above), call it KILL EXPLORER OR WHATEVER YOU WANT.reg and enter this text code and save it:-
Code:
Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\Directory\Background\shell\Restart Explorer]
@="Kill Explorer or whatever you want here to show in context menu"
"Icon"="An:\\optional\\path to\\add an.ico"
"Position"="Top"

[HKEY_CLASSES_ROOT\Directory\Background\shell\Restart Explorer\command]
@="The:\\path\\to your\\KILL EXPLORER OR WHATEVER YOU WANT.BAT"
Click and merge the .reg file into your registry.

Then in the background empty space of any Folder or your Desktop you will be able to right click and you will have an "Explorer Kill Switch" at the top of your context menu.



Hope that's of use to somebody. It's assisted me oooh, lost count of the times!

Last edited by Elmer BeFuddled; 10-24-2010 at 01:50 AM..
 
Reply With Quote
 
 
 
 
Fire cat Fire cat is offline
Established Member
Join Date: Mar 2010
Posts: 1,157
Thanked: 166
 
      10-24-2010
Nice! Thanks M8!

By the way, how did you make the flip 3D link?
 
Reply With Quote
 
 
 
 
Elmer BeFuddled Elmer BeFuddled is offline
Resident eejit
Elmer BeFuddled's Avatar
Join Date: Jun 2010
Location: Durham UK
Posts: 1,050
Thanked: 203
Send a message via Skype™ to Elmer BeFuddled
 
      10-24-2010
Quote:
Originally Posted by Fire cat View Post
By the way, how did you make the flip 3D link?
Just for you! Add Flip 3D to Context Menu
 
Reply With Quote
 
Fire cat Fire cat is offline
Established Member
Join Date: Mar 2010
Posts: 1,157
Thanked: 166
 
      10-24-2010
Thanks M8! But it gives me an error...
 
Reply With Quote
 
TrainableMan TrainableMan is offline
^ The World's First ^
TrainableMan's Avatar
Join Date: May 2010
Location: PA, USA
Posts: 6,566
Thanked: 1245
 
      12-09-2010
I found this today:

To close explorer cleanly, rather than do a kill, you simply:
hit the start orb to bring up the start menu
then hold ctrl + shift & right-mouse-click in an empty spot on the menu
select Exit Explorer

To restart it though you would either need an icon on the desktop or open task manager and run new task of explorer.exe.

Last edited by TrainableMan; 12-09-2010 at 03:24 AM..
 
Reply With Quote
 
sdmnysimon sdmnysimon is offline
Established Member
sdmnysimon's Avatar
Join Date: Mar 2010
Location: New York, USA
Posts: 160
Thanked: 20
 
      12-09-2010
nice I like that. had to check it out
 
Reply With Quote
 
cybercore cybercore is offline
Established Member
cybercore's Avatar
Join Date: Sep 2010
Location: OH Cleveland
Posts: 613
Thanked: 95
 
      12-10-2010
How to Terminate and Restart Explorer.exe Process Cleanly in Windows 7 and Vista


To restart Explorer in order to test a registry setting without a reboot, we usually terminate explorer.exe process using Task Manager. The Task Manager method is like forcibly killing the process instead of terminating it cleanly. Jeff, a Software Design Engineer at Microsoft posted a great tip on how to cleanly start and stop explorer.exe in Windows XP. Here is how to exit explorer in Windows 7 and Windows Vista.

Windows Vista & Windows 7

Although the above method (originally written for Windows XP) would work for the Classic Start menu in Windows Vista, not everyone use the Classic Start menu. Aaron Margosis of Microsoft tells how to cleanly stop Explorer.exe on Windows Vista if you’re using the default Start menu. This is using a hidden GUI option that’s present in Windows Vista and Windows 7 Start menu.

The GUI option named Exit Explorer shows up when you follow these steps:

Click the Start button. Press and hold the CTRL and SHIFT keys, and right-click on an empty area in the Start menu. You’ll see a Popup menu containing the two options namely Exit Explorer and Properties.





Note that the above Popup menu can be launched by holding the CTRL and SHIFT keys and then right-clicking on the Start menu power button itself.




NOTE After selecting the Exit Explorer command, the shell (Start menu, Taskbar and the Desktop) will the closed and the other applications continue to run. You need to manually start a new Explorer.exe process by launching Task Manager. Use the CTRL+SHIFT+ESC key sequence to launch Task Manager. From the File menu of Task Manager, choose New Task (Run…), type Explorer.exe and press ENTER.

If you’re an avid Keyboard user:

To launch the above Popup menu using keyboard, use the following key sequence:

Press CTRL+ESC to launch the Start menu.

Press Right-arrow, so that the focus is set to the power button.

Press and hold CTRL and SHIFT keys, and then press the Application key. This key has an image of a mouse pointer on a menu. Depressing this key will display the selected item’s shortcut window. This opens the Popup menu containing the Exit Explorer command. Press the X button on the keyboard to run the command.

Key sequence – Option #1: {CTRL} {ESC} {RIGHT} ({CTRL} {SHIFT}) {APPKEY} {X}

Key sequence – Option #2: {CTRL} {ESC} {RIGHT} ({CTRL} {SHIFT}) {F10} {X}
 
Reply With Quote
 
UltraX7 UltraX7 is offline
New Member
Join Date: Oct 2012
Posts: 1
Thanked: 0
 
      10-12-2012
Hey
I was just using your little guide here, but I made one flaw... I missed the spot where you insert your own icon. I don't know how to remove it now :/
Would you happen to know how to uninstall what I've done? Sorry to bother you, I'm not so good at writing code yet.

Thanks for reading and responding
P.S. I wasn't sure if I was meant to include the 'Windows Registry Editor Version 5.00' bit in the registry file... Yey or ney?
 
Reply With Quote
 
Luka Luka is offline
New Member
Join Date: Oct 2012
Posts: 2
Thanked: 0
 
      10-12-2012
Very nice, thanx
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Kill persistent malware processes before running your security software Nibiru2012 Security 8 11-27-2010 07:35 AM
Win7 upgrade from x86 to x64 on the fly possible? Roland Schweiger alt.windows7.general 7 09-05-2010 07:32 PM
So Long, Farewell: AMD to Kill ATI Brand Name Nibiru2012 News 7 09-04-2010 09:15 AM
MGI won't fly on 64bits. snoopman Software 1 01-06-2010 04:45 AM
Linux to kill Windows 7? Thrax Off-Topic Discussion 9 04-21-2009 04:36 AM


All times are GMT +1. The time now is 12:26 PM.
W7Forums is an independent website and is not affiliated with Microsoft Corporation.