Windows 7 Kill Explorer Context Menu Switch

Discussion in 'Desktop Customization' started by Elmer, Sep 24, 2011.

  1. Elmer

    Elmer Extraordinary Member

    Mar 5, 2010
    Likes Received:
    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 or launching Task Manager (Ctrl+Alt+Delete).

    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, enter this text code and save :-
    @echo off
    taskkill /f /im explorer.exe
    sleep [B][COLOR=Red]4[/COLOR][/B]
    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 per the New Text Document.txt above), call it KILL EXPLORER OR WHATEVER YOU WANT.reg and enter this text code and save it:-
    Windows Registry Editor Version 5.00
    [HKEY_CLASSES_ROOT\Directory\Background\shell\Restart Explorer]
    @="[COLOR=Red]Kill Explorer or whatever you want here to show in context menu[/COLOR]"
    "Icon"="[COLOR=Red]An:\\optional\\path to\\add a 16x16.ico[/COLOR]"
    [HKEY_CLASSES_ROOT\Directory\Background\shell\Restart Explorer\command]
    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!
    #1 Elmer, Sep 24, 2011
    Last edited: Sep 24, 2011
    1 person likes this.

Share This Page