When working with Windows 7 RC this week, I stumbled upon another nice and useful feature which I thought I should write about. Windows 7 allows you to add icons to your custom right-click (static) menu entries. Usually, to display a right-click command with an icon, one needs to write a context menu handler Shell Extension (DLL). Now, you can assign icons for static menu items as well, without having to program anything.
For example, when you add a custom right-click command "Print Directory" using the instructions in article How to add the Print Directory feature for file system folders in Windows 7 & Vista, you see this when you right-click on a directory.
![]()
So far so good. Now, you can mention an icon reference which either points to an icon resource inside a DLL/EXE file, or an .ico file.
Add an Icon to a Right-Click Menu Entry
1. Click Start, type Regedit.exe and press ENTER
2. Navigate to the corresponding registry key for the menu item. For example, if you used the previously mentioned link to add the Print Directory command to the context menu, navigate to the following key:
3. In the right-pane create a String value (REG_SZ) named Icon
4. Double-click Icon and type the path to an icon (.ico) file, or mention the icon library file name and the icon index.
![]()
5. Exit the Registry Editor.
Now, right-click on a directory and you’ll see a printer icon near the Print Directory command.
![]()
How cool is that?
Related Posts
- Fix: Cannot Unpin Pinned Folders From Windows 7 Start Menu
- Restore Missing Pin to Start Menu Context Menu Option in Windows XP
- View Hidden Items in the Send to Menu in Windows 7
- Popup Menus Appear on the Wrong Side in Windows Vista – Tablet PC Settings
- How to Run a Program Elevated via the Right-Click Menu in Windows 7/Vista?
If you enjoyed this post, make sure you subscribe to our RSS feed! We feature Tips, Troubleshooting information, Scripts and Utilities for Microsoft Windows Operating Systems!
Prefer an E-mail subscription?





i want to put an icon near “nvidia control panel” in the windos right click menu. can u help me ?
Is there a way for XP Please!!!!!!
Or is there a simple way for creating context menu handlers you mentioned?
Yes, please show us how to add icons in WinXP.
How to do this on windows xp please?
@anonymous: Adding icons to custom context menu does not remove icons from IE Command Bar. It’s something else.
But why did they have to remove the icons from the command bar in Explorer?
Works in Windows 7, at least. Thanks for telling us how!
What to do to change the icons for SendTo. I tried this guide, but did not work.
not work on windows vista
Good trick, but can this be replicated in WinXP