Click here to Skip to main content
Licence CPOL
First Posted 3 Feb 2003
Views 95,594
Bookmarked 23 times

Find Target Shell Extension

By | 3 Feb 2003 | Article
An article about shortening the process of finding the target of a .lnk(windows shortcut) file

Find Target menu selected - findtarget.gif

Introduction

This shell extension will add a new option to the Context menu of .lnk (Shortcut) files. I've always been annoyed that to Perform a find target, you have to right click properties, then click find target. There doesn't seem to be a direct api call that simulates what the shell does so I've hunted around, and come up with this, which uses a CreateProcess, ShellExecute, and didn't seem to highlight the file.

Background

After reading Michael Dunn's articles on shell extension (well the first couple so far), I took the examples and came up with this. http://www.codeproject.com/shell/shellextguide1.asp

Using the code

To use the extension, either just regsvr32 it, or Recompile and Register.

Points of Interest

There is a quirk still in here that sometimes the selected file doesn't highlight. (Anyone with any clues, assistance would be greatly appreciated)

History

  • 08-02-2003 Correction for incorrect registry entry.
  • 04-02-2003 Initial release.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

About the Author

Paul Farry

Architect
Idealpos Solutions
Australia Australia

Member

After a lengthy stint at a Retailer writing Point of Sale applications and related internal systems.
 
I now work for a Software Company writing Point of Sale applications and related internal systems.

Sign Up to vote   Poor Excellent
Add a reason or comment to your vote: x
Votes of 3 or less require a comment

Comments and Discussions

 
You must Sign In to use this message board. (secure sign-in)
 
Search this forum  
 FAQ
    Noise  Layout  Per page   
  Refresh
GeneralGreat Assisting Tool Pinmemberchessgod1018:23 10 Jan '10  
QuestionHow to install in 3 steps! Pinmembercherwally4:29 19 Sep '09  
Generaloh! thank you Paul!!!! Pinmemberbbsoft15:53 3 Aug '09  
Generalcontext not working solved Pinmemberalxnto9:39 22 Jan '09  
Generalxp64 PinmemberTilo Kühn1:40 9 May '08  
GeneralGreat Tool Pinmembercharlie markwick21:17 8 Dec '07  
GeneralDifferent behaviour on expanded start menu to s/c's in an explorer pane Pinmemberdalchina16:13 24 Aug '07  
QuestionHow to get the route of Shortcut PinmemberYao113015:44 9 Dec '04  
Generalhigfails if the target directory is open PinmemberMartijn1:59 1 Oct '03  
Generala very valuable tool PinmemberBill Hart16:52 26 Aug '03  
Generalmuch easier/more reliable way to do this Pinmemberchrisg12:20 23 Mar '03  
GeneralRe: much easier/more reliable way to do this PinmemberPaul Farry15:01 23 Mar '03  
GeneralRe: much easier/more reliable way to do this Pinmemberchrisg16:39 26 Mar '03  
GeneralRe: much easier/more reliable way to do this PinmemberLupinTaiwan6:46 13 Mar '08  
Generalnot display in context menu Pinmemberbillhao4:59 4 Feb '03  
GeneralRe: not display in context menu PinmemberTak9:05 4 Feb '03  
GeneralRe: not display in context menu Pinmemberbillhao20:24 4 Feb '03  
GeneralRe: not display in context menu PinmemberPaul Farry11:57 7 Feb '03  
GeneralRe: not display in context menu Pinmemberbillhao1:42 8 Feb '03  
GeneralRe: not display in context menu PinmemberBill Hart16:41 26 Aug '03  
GeneralRe: not display in context menu PinmemberPaul Farry21:21 5 Feb '03  
GeneralRe: not display in context menu PinmemberPaul Farry3:01 7 Feb '03  
GeneralRe: not display in context menu Pinmemberbillhao3:18 7 Feb '03  

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

Permalink | Advertise | Privacy | Mobile
Web02 | 2.5.120528.1 | Last Updated 4 Feb 2003
Article Copyright 2003 by Paul Farry
Everything else Copyright © CodeProject, 1999-2012
Terms of Use
Layout: fixed | fluid