Click here to Skip to main content
11,412,834 members (75,536 online)
Click here to Skip to main content

Find Target Shell Extension

, 3 Feb 2003 CPOL
Rate this:
Please Sign up or sign in to vote.
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)

Share

About the Author

Paul Farry
Architect
Australia Australia
I've worked on Networking applications, Point of Sale systems, Distributed Server Controllers, and multiple Plugin Architectures for various Services that I've built for the companies I've worked for over the years.

I'm currently working for a Software Development company building the Installation system for a large scale corporate packages with hundreds of disparate models that are deployed to Cloud server instances.

Comments and Discussions

 
GeneralGreat Assisting Tool Pin
chessgod101 at 10-Jan-10 9:23
memberchessgod10110-Jan-10 9:23 
QuestionHow to install in 3 steps! Pin
cherwally at 19-Sep-09 5:29
membercherwally19-Sep-09 5:29 
Generaloh! thank you Paul!!!! Pin
bbsoft at 3-Aug-09 16:53
memberbbsoft3-Aug-09 16:53 
Generalcontext not working solved Pin
alxnto at 22-Jan-09 10:39
memberalxnto22-Jan-09 10:39 
Generalxp64 Pin
Tilo Kühn at 9-May-08 2:40
memberTilo Kühn9-May-08 2:40 
GeneralGreat Tool Pin
charlie markwick at 8-Dec-07 22:17
membercharlie markwick8-Dec-07 22:17 
GeneralDifferent behaviour on expanded start menu to s/c's in an explorer pane Pin
dalchina at 24-Aug-07 17:13
memberdalchina24-Aug-07 17:13 
QuestionHow to get the route of Shortcut Pin
Yao1130 at 9-Dec-04 16:44
memberYao11309-Dec-04 16:44 
Generalhigfails if the target directory is open Pin
Martijn at 1-Oct-03 2:59
memberMartijn1-Oct-03 2:59 
Generala very valuable tool Pin
Bill Hart at 26-Aug-03 17:52
memberBill Hart26-Aug-03 17:52 
Generalmuch easier/more reliable way to do this Pin
chrisg at 23-Mar-03 13:20
memberchrisg23-Mar-03 13:20 
GeneralRe: much easier/more reliable way to do this Pin
Paul Farry at 23-Mar-03 16:01
memberPaul Farry23-Mar-03 16:01 
GeneralRe: much easier/more reliable way to do this Pin
chrisg at 26-Mar-03 17:39
memberchrisg26-Mar-03 17:39 
GeneralRe: much easier/more reliable way to do this Pin
LupinTaiwan at 13-Mar-08 7:46
memberLupinTaiwan13-Mar-08 7:46 
Generalnot display in context menu Pin
billhao at 4-Feb-03 5:59
memberbillhao4-Feb-03 5:59 
GeneralRe: not display in context menu Pin
Tak at 4-Feb-03 10:05
memberTak4-Feb-03 10:05 
GeneralRe: not display in context menu Pin
billhao at 4-Feb-03 21:24
memberbillhao4-Feb-03 21:24 
GeneralRe: not display in context menu Pin
Paul Farry at 7-Feb-03 12:57
memberPaul Farry7-Feb-03 12:57 
GeneralRe: not display in context menu Pin
billhao at 8-Feb-03 2:42
memberbillhao8-Feb-03 2:42 
GeneralRe: not display in context menu Pin
Bill Hart at 26-Aug-03 17:41
memberBill Hart26-Aug-03 17:41 
GeneralRe: not display in context menu Pin
Paul Farry at 5-Feb-03 22:21
memberPaul Farry5-Feb-03 22:21 
GeneralRe: not display in context menu Pin
Paul Farry at 7-Feb-03 4:01
memberPaul Farry7-Feb-03 4:01 
GeneralRe: not display in context menu Pin
billhao at 7-Feb-03 4:18
memberbillhao7-Feb-03 4:18 

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.

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