I'd like to add an option in my context menu to be able to right click on a file and view the containing folder in Windows Explorer. Can somebody point me in the right direction?
-
2If you are able to right click on the file then aren't you already in it's 'containing folder' in order to view the file icon?– DaisetsuJul 13, 2010 at 0:53
-
No, I'm using Agent Ransack and I'd like to add this to the results of a search.– Mike ColeJul 13, 2010 at 2:09
-
Never used Agent Ransack, but is the context menu the standard Windows Explorer context menu? As in, does it have the Send To option?– Agent_9191Jul 15, 2010 at 17:16
3 Answers
Download the latest version of Agent Ransack 2010.
It has an "Explore here" option in the right-click context menu.
I think you need to be clear on what you're right-clicking. If it's an actual file in Explorer, you're already looking at the containing folder (as was mentioned by Daisetsu).
In the more likely case where you're right-clicking a shortcut on the desktop or in the Start menu, then there's a simple registry hack that does the job perfectly at http://www.askvg.com/how-to-get-windows-vista-and-7s-open-file-location-option-in-xp/.
Here's the hack's REG file contents:
Windows Registry Editor Version 5.00
;Created by Vishal Gupta for AskVG.com
[HKEY_CLASSES_ROOT\*\shell]
[HKEY_CLASSES_ROOT\*\shell\File Location]
@="Open &File Location"
[HKEY_CLASSES_ROOT\*\shell\File Location\command]
@="\"explorer.exe\" /select,\"%1\""
-- based on Vishal Gupta's article and boot13's answer... --
Here's an improved version:
- New name 'Explore here' (instead of 'Open File Location').
- Menu item appears in top of the context menu.
- It has an icon next to it.
Instructions:
- Create empty REG-file
- Copy + paste registry script and save file.
- Run the REG-file.
File name:
Add 'Explore here' option in Windows XP.reg
Contents:
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\*\shell]
[HKEY_CLASSES_ROOT\*\shell\File Location]
@="&Explore here"
"Icon"="imageres.dll,203"
"Position"="Top"
[HKEY_CLASSES_ROOT\*\shell\File Location\command]
@="\"explorer.exe\" /select,\"%1\""
note: These registry changes were tested in Windows 10, not Windows XP.