in

Platinum Bay

Peace, Love and Visual Studio Team System

.NETicated

Find Target Registry Code

It's always such a pain finding a Windows shortcut's target. You have to right-click on the shortcut, choose properties, and then click 'Find Target…'. After Explorer pops up, you still have to close the properties window (Esc key). Wouldn't it be great if there was an easier way, like in the context menu? A while back I found a program you could install to do just that, but I hate installing 'unknown' stuff. Well, I finally found a more transparent solution – a registry hack.

Simply create a .REG file, paste the following text, and run it. It's awesome, and I find I use it quite a bit. I use the Quick Launch folder in the Task tray, and if, for instance, I would like to navigate to Visual Studio's program folder for some template work, I can right-click on the VS icon in my Quick Launch and choose 'Find Target'. Sweet!

The usual 'editing the registry at your own risk' warning applies.

Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\Directory\shell\Find.Target]
@="&Find Target"
[HKEY_CLASSES_ROOT\Directory\shell\Find.Target\command]
@="\"explorer.exe\" /select,\"%1\""
[HKEY_CLASSES_ROOT\*\shell]
[HKEY_CLASSES_ROOT\*\shell\Find.Target]
@="&Find Target"
[HKEY_CLASSES_ROOT\*\shell\Find.Target\command]
@="\"explorer.exe\" /select,\"%1\""

Hope this helps

Published Dec 04 2007, 10:31 PM by Steve
Filed under: ,

Comments

February 4, 2008 10:57 AM

Thank you. It works just as it should under XP pro sp2 ;)

drasko
 

Leave a Comment

(required )  
(optional )
(required )  
Add

About Steve

Steve Andrews has been working as a developer for more than 8 years. During this time, he has designed and developed applications in such widely varying areas as trust accounting, medical information management, supply chain management, and retail systems. He has firsthand developer experience with a variety of languages, including Java, VB, and .NET. Most recently, he has been immersed in SharePoint. He is currently employed at RDA Corporation in Philadelphia, PA, as a Software Engineer and a team member in the Architectural Guidance evangelism team. Steve is also an MTCS (x2), ICSOO, and .NET fanatic.
Powered by Community Server (Commercial Edition), by Telligent Systems
© Platinum Bay | Some Rights Reserved Creative Commons License

Disclaimer: The information in this weblog is provided "AS IS" with no warranties, and confers no rights. This weblog does not represent the thoughts, intentions, plans or strategies of my employer. It is solely my opinion. Feel free to challenge me, disagree with me, or tell me I'm completely nuts in the comments section of each blog entry, but I reserve the right to delete any comment for any reason whatsoever (abusive, profane, rude, or annonymous comments) - so keep it polite, please.