1. You are viewing our forum as a guest. For full access please Register. WindowsBBS.com is completely free, paid for by advertisers and donations.

Registty Gurus: How to add "Find Target" to .lnk context menu?

Discussion in 'Windows XP' started by pilau, 2007/12/24.

  1. 2007/12/24
    pilau

    pilau Inactive Thread Starter

    Joined:
    2007/05/21
    Messages:
    24
    Likes Received:
    0
    Hi guys. I want to know, please, how can I the option "Find Target" (i.e. open containing folder) to shortcut files (.lnk files).

    Can you help me please?
     
  2. 2007/12/24
    Whiskeyman Lifetime Subscription

    Whiskeyman Inactive Alumni

    Joined:
    2005/09/10
    Messages:
    1,772
    Likes Received:
    37

  3. to hide this advert.

  4. 2007/12/24
    mailman Lifetime Subscription

    mailman Geek Member

    Joined:
    2004/01/17
    Messages:
    1,901
    Likes Received:
    11
    pilau, just in case you're not aware...

    DISCLAIMER/CAUTION: Editing/cleaning/repairing your computer's registry is potentially dangerous. You might render your computer unstable or even unbootable. Before you edit/clean/repair your registry with any method, be sure you make a backup of your registry and you know how to access and use that backup in case you muck up your computer.

    If you decide to manually edit your registry, then be sure you are comfortable with editing the registry and I suggest you save a backup of at least the section you edit ahead of time in case you need/want to reverse your changes. Editing the registry can produce serious undesirable consequences if done incorrectly.

    In any case, you should know ahead of time how to restore your original registry settings and prepare to do so in case the need arises.

    I also suggest you create a System Restore point before making any changes (regardless of what method you use). System Restore may be accessed as follows.
    • Click Start > All Programs > Accessories > System Tools > System Restore

    Microsoft KB306084: How to restore the operating system to a previous state in Windows XP
    ==========

    Good luck! :)
     
  5. 2007/12/25
    pilau

    pilau Inactive Thread Starter

    Joined:
    2007/05/21
    Messages:
    24
    Likes Received:
    0
    Thanks for both your posts, but Whiskeyman missunderstood my question.

    And mailman, thanks for your warning and concern, but I'm an advanced PC and Windows user with a rich registry editing past, so I know what I'm doing :)

    Anyway, I have found the solution myself to what I seek. All you have to do is go to the lnkfile Key in HKEY-Classes-Root, add a new key called "shell ", inside it add "Find Target" key, and inside it add "command" key. like this:

    HCR -> lnkfile -> shell -> Find Target -> command

    in that key edit the default string value to:
    Code:
     "explorer.exe" /select, "%1 "
    What happens is we call explorer.exe (i.e. windows' environment manager) to open the location where "%1" is, and to highlight it (/select). In this case, %1 is the file we right-clicked on, so we will get the folder it is in, and hence it's a shortcut file - it will point to the file we linked to.

    And that's all to it!
     
    Last edited: 2007/12/25
  6. 2007/12/25
    mailman Lifetime Subscription

    mailman Geek Member

    Joined:
    2004/01/17
    Messages:
    1,901
    Likes Received:
    11
    Gotcha. :) I'll try to remember that, but please don't hold me to it. ;)

    The disclaimer might still help prevent others who might read this thread and try it from getting into serious trouble anyway.

    Merry Christmas!
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.