Subscribe to How-To Geek

Add Any Application to the Desktop Right-Click Menu in Vista

We’ve previously written about how to clean up your messy Windows context menu, and recently we’ve written about how to add the Control Panel to the desktop menu, but instead of writing separate articles for each application I’m just going to show you how to add anything to the menu that you’d like.

If you don’t know what we’re talking about, I mean the menu that shows up when you right-click on the desktop:

image 

For today’s lesson we’ll show you how to add Notepad to the menu, but you could add any applications you want instead.

Step 1: Browse to the Registry Key

The first thing you’ll want to do is open up regedit.exe through the start menu search or run box, and then browse down to the following key:

HKEY_CLASSES_ROOT\Directory\Background\shell

image

The screen should look similar to this one if you are in the right place.

Step 2: Create the Menu Item Key Name

To complete this step we’ll need to create a new key, the name of which is exactly what is going to show up on the desktop menu.

Right-click on the “shell” key, and then choose New \ Key from the menu.

image

Give the new key the name that you want to show up on the desktop context menu. For this example we’ll be using Notepad.

image
Optional Step: If you want to assign an “Alt” key to this menu entry for quicker access, you can change the (Default) value on the right and put an & character in front of the key you want to use. For instance, if you wanted to be able to just use the N key to launch Notepad once the desktop context menu pops up, you can do this:

image

Personally I don’t find this terribly useful since you have to use the mouse to right-click on the desktop… may as well just use the mouse to click the item. Still, for completeness I’ve included it.

Step 3: Create the Command Key

Next you’ll need to create the command key that will actually hold the command used to launch the application. Right-click on the new Notepad key, and then choose New \ Key from the menu.

image

Give this key the name “command” in lowercase.

image 

Step 4: Add in the Full Application Executable Path

To complete this step you’ll need the full path to the application that you want to launch. You can use Shift + Right-Click to get the Copy as Path menu item to find this more quickly.

image

Now click on “command” on the left side, and then double-click on the (Default) key in the right side to edit the string value.

image

Paste in the full path to the executable that you got from the “Copy as Path” step above, or you can put in the full path yourself if you’d like.

Once it’s done, it should look like this:

image

And right-clicking on the desktop will produce the new menu item… naturally, using this menu item should launch Notepad.

image

You can add as many applications to the desktop context menu as you’d like, just repeat the steps 2-4 again with a new menu item name.

| More
This article was originally written on 12/15/08 Tagged with: Desktop Customization, Windows Vista

Daily Email Updates

You can get our how-to articles in your inbox each day for free. Just enter your name and email below:


Name:
Email:

Comments (35)

  1. Scott

    very useful little tidbit of info … for customizing .. thanx ..

  2. Phao Loo

    Very useful and informative post. But playing with registry is so dangerous for novice users, we should back registry first (even create a restore point) before change something there.

  3. The Geek

    @Phao

    That’s a good point. In fact, creating a restore point is a good idea in general before following any of our articles, which often deal with the registry.

  4. rabuksak

    Wonderful! Thanks Geek.

    On the a.-retentive side (nice sensor there), is there any way to order/reorder the items added in the menu besides deleting and re-adding items in the order preferred?

  5. The Geek

    @rabuksak

    Aren’t they in alphabetical order? I was under that impression… but I didn’t really think about it before. Will check into that.

  6. Chris

    I’d be glad to create a quick .NET utility to provide a point-and-click UI for these steps. If there’s interest, let me know, and I’ll try to have something ready to try by tomorrow (Dec 16th).

  7. 0zSpitt

    can i put firefox and my commonly used programs on this? i like this hack, i can use it…

  8. Stephen

    I like it the fact you can add those to the right click but was wondering if you could add a folder to it with programs already in there.

  9. Barry Carlyon

    This looks really useful, not for notepad obviously, as windows + r, then notepad is so much quicker.

    My issue is I use the quicklaunch and my desktop is never visible, as programs are always open.

    Nice tutorial tho :-)

  10. Dusty

    Will this work with XP?

  11. The Geek

    @Dusty

    No, it won’t, but if you really don’t mind some hacking, there’s an excellent Vishal article on the subject:

    http://www.askvg.com/a-complet.....ce-hacker/

  12. Spacegold

    Um, would it be possible to write this up as a batch file that we could edit to insert the name of the program we want to include? Just wondering……

  13. Chris

    @Spacegold

    Have written a utility that I’ve submitted to The Geek that will make it pretty simple to add elements. It currently isn’t especially UAC aware but if you’ve turned off UAC and are running with local admin privileges, it works fine. Will see about revving to a more UAC-friendly version if warranted. However, since modifying HKCR should, I would guess, require admin rights, simply running the tool using “Runas” may also work.

  14. Stepen

    What utility did you add and where can I find this utility?

  15. Chris

    I uploaded it to the moderator and he’s going to decide if it’s something he’d provide a link to on his site.

    Future enhancements would include the ability to remove an entry after adding it without having to go into the registry.

  16. Spacegold

    Thank you, Chris. I hope Geek determines it worthy. And the unloader would be a definite plus.

  17. Spacegold

    Now, if we could just get a “close window” option in all rightclick menus except desktop.

  18. Chris

    Version 1.0.2 has been provided to The Geek. It now forces the UAC “enter admin credentials” prompt when the program is launched and you have UAC enabled. If you have UAC disabled, you can run the program but without admin privileges, your changes won’t be saved. Next version will clean that behavior up a bit.

  19. Andrelis

    Can I change the order of Desktop Right-Click Menu in Vista? For example, that Notepad would be the first item above all?

  20. Xavier Van Vlasselaer

    Hi,

    Very nice idea!!! I have used your idea to create a post on my blog.
    Of course your Web site is referenced in my article… (http://www.cegx.com/cegxblog/p.....-nikon-d80)
    The issue is that it is in French, but I explain the summary…

    I have the Nikon D80… and I use always the NEF and the JPG in high quality… I use the JPG for quick view and quick use… The NEF for picture rework…

    The problem with the Nikon is that it puts the NEF and the JPGs in the same directory. I used therefore your tip to create a BAT file and call it with a Right click… using your idea…

    Many thanks,

    Xavier

  21. brad

    to link to a folder simply type this for the command default entry

    explorer.exe “C:\path to folder”

  22. Stephen

    to link a folder does that work in the regeidt because I tried and kept on saying no path found please can you give me more on that how to link a folder in the regeidt. Thank you

  23. Stephen

    I did figure it out how to do it but I do have a question how can you get that arrow key like you have for new with the arrow key to choose those items to open up the same way for the folder I created on the right click is there anyway to do that or its imposible.

  24. Chris

    Go to HKEY_CLASSES_ROOT, Directory, Background, shell. With shell selected, choose Edit | New | Key. Give it the name/text you want to appear when you right-click on the desktop (e.g., Launch Explorer). After creating this key, select it, then choose Edit | New | Key. Name the new key “command” (without the quotes), under the key you created previously. Select the command key, then double-click on the (Default) entry in the right pane, and type in something like the following:

    C:\Windows\explorer.exe c:\windows

    There are essentially two pieces to the above entry: (1) full path to the Explorer executable and (2) the full path to the directory you want displayed when you choose your newly created item from the Context Menu.

    Hope this helps!

  25. shan

    ya its very useful…

  26. Astralnaut

    Hey Geek, I just want to say thank you. Your Website is absolutely “The Best” for
    Desktop customization. I’ve tried 80% of your tips and always had success.
    Windows Vista/Linux Ubuntu

  27. Dave

    Hi, Ok That worked,
    Now lets see how smart you guys are…
    How do I put wordpad into my NEW submenu?
    In other words, right click then click NEW and in this
    NEW menu I want to be able to create a NEW wordpad.
    Thx
    Dave

  28. xternalfixator

    ********

    is it possible to create a *drop-panel-menu*,
    like View, Sort By and NEW, to add program items and short cut links? …

    ive looked thru HKEYS but couldnt find a way to do it,
    plus ive searched all over “adding a drop panel menu to desktop”
    without any luck either

    thnx

    *******

  29. robmaister

    any way of adding an icon to the right click item?

  30. hooba

    thanks alot for this tip, it’s realy useful

  31. jomimogi

    I would like advice on how to put the Favorites yellow star on my desktop; I now have Vista and can’t do it, although I was able to put it on the desktop in Windows XP. Thanks.

    Mike M.

  32. jomimogi

    I forgot to ask to be notified via email opn your sage advice.
    Thanks Mike M.

  33. Trevor

    I have looked for the utility that Chris submitted but am unable to find it.
    Was it accepted by this site?
    If so, where is it?

    I also wish to add notepad to the right-click menu but much prefer to use a utility, that has been proven to work, than fiddle around in the Registry.

  34. George E. Crane

    Disappearing cursor, Who knows how to FIX it????? This has been around for a couple of years and has not been fixed yet.

    Using Vista Primium, Logitech TrackBall mouse.

    All the helpful hints from the Internet have failed to fix this problem!!

  35. David

    Would I use this same method to add a “Start Task Manager” button to the right-click menu? I tried but it didn’t work… Perhaps I did something wrong… I don’t know. Could I have some help? Please?


Leave a Comment




Leave your friendly comment here.

If you have a computer help question, click here to leave it on the forums instead.

Note: Your comment may not show up immediately on the site.

Our Friends
Getting Started


About How-To Geek
What Is That Process?
svchost.exe
jusched.exe
dwm.exe
ctfmon.exe
wmpnetwk.exe
mDNSResponder.exe
wmpnscfg.exe
rundll32.exe
wfcrun32.exe
Ipoint.exe
Itype.exe
Wfica32.exe
Mobsync.exe
conhost.exe
Dpupdchk.exe Adobe_Updater.exe

Copyright © 2006-2009 HowToGeek.com. All Rights Reserved.