Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium


Adding Open Containing Folder to context menu

Posted on 2009-12-18
Medium Priority
Last Modified: 2012-06-21
Running Windows 7, I am using a third-party application for searching for files and folders, instead of Windows Search.  This application works well, but it lacks a context menu item to open the containing folder for any particular file which appears in the search results.  I need some help to edit the registry to provide for this context menu item.

In the registry hive HKey_Classes_Root/shell/* I have added a new key named OpenContainingFolder and set the default value to Open Containing Folder.  Under the newly-added key I have added another new key called Command.  However, I don't know what to set for the default value. I tried C:\Windows\explorer.exe %1 but that does not work.  Please advise.  Thanks!
Question by:ddantes

Expert Comment

ID: 26086114
Use "Everything" from http://www.voidtools.com/ 
Fastest search, least size database, least resources and gives option to explore files as well.

I know this is not the answer to what you asked, but had a good suggestion, so sharing it.
I am sure you will enjoy this tool.
LVL 22

Expert Comment

ID: 26086673
LVL 58

Expert Comment

ID: 26086952
Windows explorer has this builtin. So if you cannot use it in your third-party-search, modifying the standard context menus won't help you as those don't seem to be used. Seems like a feature request for the developers of your software.
Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.


Author Comment

ID: 26087867
cyberkushal: I appreciate your introducing me to the Everything utility.  I am still hoping for a search application which can index file content as well as file and folder names, and allows a right-click to open the containing folder of an item found on search.

senad: thank you for your comment.  That article describes how to associate an icon with an existing context menu item, rather than how to add the item itself, so it doesn't really address my question.

McKnife: thank you for your comment.  I have mentioned this to the developer, and am awaiting a reply. Adding a registry and key and value Open Containing Folder to the standard context menu caused the option to appear when right-clicking an item found by the search application.  However, I don't have a command to associate with that item.

Accepted Solution

ddantes earned 0 total points
ID: 26088038
After further study, I found the missing command.  To add Open Containing Folder to the general context menu using regedit, navigate to HKey_Classes_Root/*/shell and create a new key with any name. Set the default value to Open Containing Folder. Under the new key, create another new key with the name "Command". Set the default value to "explorer /select,%1".  With this modification, the containing folder of any file can be opened on righit-click, including items found using the search utility.

LVL 22

Expert Comment

ID: 26118160
First part I knew (I knew it had to be under HKey_Classes_Root/*/shell)  but not the second ("explorer /select,%1").That's  why I did not mention it....
Well,thank you for the info ....

Featured Post

Get expert help—faster!

Need expert help—fast? Use the Help Bell for personalized assistance getting answers to your important questions.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This is an update to some code that someone else posted on Experts Exchange. It is an alternate approach, I think a little easier to use, & makes sure that things like the Task Bar will update.
In this tutorial, we’re going to learn how to convert Youtube to mp3 for Free. We'll show you how easy it is to make an mp3 from your video clips so that you can enjoy them offline.
The viewer will learn how to successfully download and install the SARDU utility on Windows 7, without downloading adware.
In this video, viewers will be given step by step instructions on adjusting mouse, pointer and cursor visibility in Microsoft Windows 10. The video seeks to educate those who are struggling with the new Windows 10 Graphical User Interface. Change Cu…

581 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question