Click here to Skip to main content
13,046,773 members (41,203 online)
Click here to Skip to main content
Add your own
alternative version


24 bookmarked
Posted 3 Feb 2003

Find Target Shell Extension

, 3 Feb 2003
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


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.


After reading Michael Dunn's articles on shell extension (well the first couple so far), I took the examples and came up with this.

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)


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


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


About the Author

Paul Farry
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.

You may also be interested in...

Comments and Discussions

Generalhigfails if the target directory is open Pin
Martijn1-Oct-03 1:59
memberMartijn1-Oct-03 1:59 
Generala very valuable tool Pin
Bill Hart26-Aug-03 16:52
memberBill Hart26-Aug-03 16:52 
Generalmuch easier/more reliable way to do this Pin
chrisg23-Mar-03 12:20
memberchrisg23-Mar-03 12:20 
GeneralRe: much easier/more reliable way to do this Pin
Paul Farry23-Mar-03 15:01
memberPaul Farry23-Mar-03 15:01 
This call appears to be only for XP or better.

Anything comparable for W2k?

GeneralRe: much easier/more reliable way to do this Pin
chrisg26-Mar-03 16:39
memberchrisg26-Mar-03 16:39 
GeneralRe: much easier/more reliable way to do this Pin
LupinTaiwan13-Mar-08 6:46
memberLupinTaiwan13-Mar-08 6:46 
Generalnot display in context menu Pin
billhao4-Feb-03 4:59
memberbillhao4-Feb-03 4:59 
GeneralRe: not display in context menu Pin
Tak4-Feb-03 9:05
memberTak4-Feb-03 9:05 
GeneralRe: not display in context menu Pin
billhao4-Feb-03 20:24
memberbillhao4-Feb-03 20:24 
GeneralRe: not display in context menu Pin
Paul Farry7-Feb-03 11:57
memberPaul Farry7-Feb-03 11:57 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    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 | Terms of Use | Mobile
Web02 | 2.8.170713.1 | Last Updated 4 Feb 2003
Article Copyright 2003 by Paul Farry
Everything else Copyright © CodeProject, 1999-2017
Layout: fixed | fluid