How to add an item named "Open in Explorer" to right-click context-menu after I have selected some text?

06
2014-04
  • zionpi

    For Windows 7 and above, I constantly ran into a situation like: go to THE_DIRECTORY and do something. Every time I have to copy THE_DIRECTORY and use Win+E to open an Explorer, and then paste the special string THE_DIRECTORY to the address box, and then press Enter key.

    How do I add an item named "Open in Explorer" to right-click context-menu after I have selected some text? I have already searched HowToGeek, but without any luck. Could someone shed some light on how to do this?

  • Answers
  • Knuckle-Dragger

    Here is a basic example of a shell extension from the example in this thread.

    Windows Registry Editor Version 5.00
    
    [HKEY_CLASSES_ROOT\Directory\Background\shell\Open_in_Explorer]
    "MUIVerb"="Open_in_Explorer_By_KNUCKLE_DRAGGER"
    "icon"="Explorer.exe"
    "Position"="Top"
    
    [HKEY_CLASSES_ROOT\Directory\Background\shell\Open_in_Explorer\command]
    @="cmd /c start /wait /b powershell -command \"Clear-Host;$CLIPBOARD = PowerShell -NoProfile -STA -Command {[reflection.assembly]::loadwithpartialname('PresentationCore') | Out-Null;[Windows.Clipboard]::GetText()};C:\\Windows\\Explorer.exe $CLIPBOARD\""
    ;
    

    Still working on how to make the magic happen, I think powershell maybe has a [Windows.Clipboard]::GetText() method we can use.


  • Related Question

    Windows: How to remove items from the right click (context) menu?
  • Ashwin

    The right click (context) menu is minimal and clean on a fresh installation of Windows. Install a bunch of applications and soon the context menu is loaded with all kinds of opening options from various applications.

    How do I remove items from the right click (context) menu?

    I find that there are different types of right click menu items:

    • Global items that appear in all context menus.

    • Items that appear only on folders.

    • Items that appear only on files.

    • Items that appear only on special folders (Ex: Right clicking a folder of MP3s shows up a context menu with items like Play with Windows Media Player.)

    • Items that appear only on certain file types (Ex: Right clicking a MP3 file shows up a context menu with items from Windows Media Player/Foobar2000/VLC/your-favorite-media-player begging to open this file.)

    I want to be able to delete all these kinds items from the right click (context) menu.


  • Related Answers
  • 8088

    I've written a lengthy explanation of how to clean up a messy context menu, using either the registry editor or some freeware NirSoft tools.

    How to Clean Up Your Messy Windows Context Menu

    alt text

  • Paolo Bergantino

    From here:

    1. Click Start
    2. Click Run
    3. Type in regedit and click ENTER
    4. Browse to the following: HKEY_CLASSES_ROOT\*\shellex\ContextMenuHandlers
    5. You simply delete or export then delete the keys you do not want

    There are several "kinds" of menu handlers, however, so you could browse to any of the following and perhaps find stuff you want to get rid of:

    HKEY_CLASSES_ROOT\*\OpenWithList
    HKEY_CLASSES_ROOT\*\shellex\ContextMenuHandlers
    HKEY_CLASSES_ROOT\Directory\Background
    HKEY_CLASSES_ROOT\Directory\shell
    HKEY_CLASSES_ROOT\Directory\shellex\ContextMenuHandlers
    HKEY_CLASSES_ROOT\Drive\shell
    HKEY_CLASSES_ROOT\Drive\shellex\ContextMenuHandlers
    HKEY_CLASSES_ROOT\Folder\shell
    HKEY_CLASSES_ROOT\Folder\shellex\ContextMenuHandlers
    
  • user10775

    If you're running Windows XP, Microsoft has a free utility called Microsoft PowerToys for Windows XP. The specific "PowerToy" that has the remove menu items options is called "TweakUI".

    How to edit menu options with TweakUI:

    1. Download, install and open TweakUI.
    2. Click on the the "Templates" option on the left hand side.
    3. Check/uncheck the items you want.
    4. Bonus: Add other custom items.

    Link

  • therube

    Oops. Didn't realize How-To-Geek had it covered. (Not used to the aero look & didn't even realize it was ShellExView.)

    Direct link to nirsoft's page for reference, http://www.nirsoft.net/utils/shexview.html.

    "ShellExView - Shell Extensions Manager" http://www.nirsoft.net/utils/shexview.html Shell Extensions are in-process COM objects which extends the abilities of Windows operating system. Most shell extensions are automatically installed by the operating system, but there are also many other applications that install additional shell extension components. For example: If you install WinZip on your computer, you'll see a special WinZip menu when you right-click on a Zip file. This menu is created by adding a shell extension to the system. The ShellExView utility displays the details of shell extensions installed on your computer, and allows you to easily disable and enable each shell extension. ShellExView can be used for solving context-menu problems in Explorer environment. For more information, read the following article: Right-click is slow or weird behavior caused by context menu handlers.
  • Diogo

    To do this, I use Glary Utls:

    Glary Utilities is the #1 free, powerful and all-in-one utility in the world market! It offers numerous powerful and easy-to-use system tools and utilities to fix, speed up, maintain and protect your PC.

  • galacticninja

    To add to the other answers, here are other software that can also edit the Context Menu:

    • Default Programs Editor - Its UI makes it easy to disable context menu of a specific file type.

    • MenuMaid - Its UI makes it easy to disable all context menu from a specific program.