Click here to Skip to main content
6,631,404 members and growing! (18,802 online)
Email Password   helpLost your password?
Desktop Development » Shell and IE programming » General     Intermediate License: The Code Project Open License (CPOL)

Find Target Shell Extension

By Paul Farry

An article about shortening the process of finding the target of a .lnk(windows shortcut) file
VC6, VC7Win2K, WinXP, ATL, Dev
Posted:3 Feb 2003
Views:75,935
Bookmarked:18 times
Announcements
Loading...
 
Search    
Advanced Search
Add to IE Search
printPrint   add Share
      Discuss Discuss   Broken Article?Report  
15 votes for this article.
Popularity: 4.70 Rating: 4.00 out of 5

1
3 votes, 20.0%
2

3
1 vote, 6.7%
4
11 votes, 73.3%
5

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


Member
Programmer, Architect, DBA, jack of all trades.

Having worked in Multimedia, I am now a System Programmer and Designer. Having worked a great deal with ECommerce systems, Modem Polling systems and SOE Mini Installers, I find building systems and related applications a lot of fun
Occupation: Web Developer
Location: Australia Australia

Other popular Shell and IE programming articles:

Article Top
You must Sign In to use this message board.
FAQ FAQ 
 
Noise Tolerance  Layout  Per page   
 Msgs 1 to 22 of 22 (Total in Forum: 22) (Refresh)FirstPrevNext
AnswerHow to install in 3 steps! Pinmembercherwally5:29 19 Sep '09  
Generaloh! thank you Paul!!!! Pinmemberbbsoft16:53 3 Aug '09  
Generalcontext not working solved Pinmemberalxnto10:39 22 Jan '09  
Generalxp64 PinmemberTilo Kühn2:40 9 May '08  
GeneralGreat Tool Pinmembercharlie markwick22:17 8 Dec '07  
GeneralDifferent behaviour on expanded start menu to s/c's in an explorer pane Pinmemberdalchina17:13 24 Aug '07  
GeneralHow to get the route of Shortcut PinmemberYao113016:44 9 Dec '04  
Generalhigfails if the target directory is open PinmemberMartijn2:59 1 Oct '03  
Generala very valuable tool PinmemberBill Hart17:52 26 Aug '03  
Generalmuch easier/more reliable way to do this Pinmemberchrisg13:20 23 Mar '03  
GeneralRe: much easier/more reliable way to do this PinmemberPaul Farry16:01 23 Mar '03  
GeneralRe: much easier/more reliable way to do this Pinmemberchrisg17:39 26 Mar '03  
GeneralRe: much easier/more reliable way to do this PinmemberLupinTaiwan7:46 13 Mar '08  
Generalnot display in context menu Pinmemberbillhao5:59 4 Feb '03  
GeneralRe: not display in context menu PinmemberTak10:05 4 Feb '03  
GeneralRe: not display in context menu Pinmemberbillhao21:24 4 Feb '03  
GeneralRe: not display in context menu PinmemberPaul Farry12:57 7 Feb '03  
GeneralRe: not display in context menu Pinmemberbillhao2:42 8 Feb '03  
GeneralRe: not display in context menu PinmemberBill Hart17:41 26 Aug '03  
GeneralRe: not display in context menu PinmemberPaul Farry22:21 5 Feb '03  
GeneralRe: not display in context menu PinmemberPaul Farry4:01 7 Feb '03  
GeneralRe: not display in context menu Pinmemberbillhao4:18 7 Feb '03  

General General    News News    Question Question    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

PermaLink | Privacy | Terms of Use
Last Updated: 3 Feb 2003
Editor: Nishant Sivakumar
Copyright 2003 by Paul Farry
Everything else Copyright © CodeProject, 1999-2009
Web21 | Advertise on the Code Project