also @ TechSpot: Android 4.0: Tracking Ice Cream Sandwich's Availability on Smartphones

TechSpot

Adding menu item in pop-up menu of explorer

Discussion in 'Windows OS' started by lokem, May 8, 2002.

Thread Status:
Not open for further replies.
  1. lokem Newcomer, in training

    HI all,

    I was wondering how I can add a menu item in the popup menu in explorer (when you right-click a file).

    The menu item I'm planning to add is a simple one. It just calls up a text editor and opens the selected file with it.

    Anyone knows how to do this?

    TIA.
  2. Rick TechSpot Staff

    Wow! I can't believe no one knows how to do this.

    Including me. :)

    Back in the 98 days, I used to be able to by copying shortcuts to a particular folder I think. I'm not sure where though. I will try to find the answer.
  3. Mictlantecuhtli TS Special Forces

    Yeah, it's a simple registry tweak:

    In section HKEY_CLASSES_ROOT \ *

    If there's no "shell" key, add it.

    Under "shell", add a key "open"

    Edit the string "default" to whatever you want to show up in pop-up menu, like "Open with Notepad"

    Under "open", add a key "command"

    Edit the string "default" - put the command there, for example "notepad.exe %1"

    New OSs (2k, XP, .NET, ..) are trying to be smarter than you, so you have to delete/rename another registry key before it works with every file:

    ..but damn, I can't remember it anymore..
    It's buried in CLSID section, search for "MayChangeDefaultMenu", the CLSID is mentioned in "shellex" key..
  4. Per Hansson TechSpot Server Guru

    To add "Open Containing Folder" to all files/shortcuts on your computer;

    Code:
    Windows Registry Editor Version 5.00
    
    [HKEY_CLASSES_ROOT\*\Shell\XQXSETCMD1]
    @="Open Containing Folder"
    
    [HKEY_CLASSES_ROOT\*\Shell\XQXSETCMD1\Command]
    @="explorer /select,%1"
    
    [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\*\Shell\XQXSETCMD1]
    @="Open Containing Folder"
    
    [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\*\Shell\XQXSETCMD1\Command]
    @="explorer /select,%1"
    
    As you can see from the output this is from X-Setup, you should be able to modify this to your needs... (or just use X-Setup ;)
  5. kimsland Ex-TechSpotter

    X-Setup lol :)

    You can remove them with this tool:
    Context Menu Editor

    I'm sure there'll be an easy add tool too somewhere
    But most users want to get rid of them, they tend to slow down your right clicking, and can cause other undesirable affects
Thread Status:
Not open for further replies.