Developer Snippet Diary

how to add any application to the windows desktop right-click menu

Add any program in context menu

  1. open regedit using Window + R
  2. Goto
    HKEY_CLASSES_ROOT > Directory > Background > shell?
  3. Right-click shell and select New > Key. Name the key the application you'd like to add to the context menu.
  4. Now right-click the new key you just made and once again select New > Key. Name the key "command" in all lowercase.
  5. In the new command key folder you just made, double-click the (Default) key located on the right-hand side of the window. In the Value data section, put the path to the executable file for the application you'd like to add to the context menu and hit OK.

Add Icon to any app in context menu

  1. Click on key you created:
  2. Create a new String Value for it (New > Key, choose String Value)
  3. Call it: Icon
  4. Set it's value as path of any program thats icon you need.

Position of context menu

  1. Click on key you created:
  2. Create a new String Value for it (New > Key, choose String Value)
  3. Call it: Position
  4. Set it's value as Top|Bottom

Posted by: R GONDAL
Email: rizikmw@gmail.com