Forum     

Go Back   Digit Technology Discussion Forum > Community > Tutorials
Register FAQ Calendar Mark Forums Read

Tutorials This section offers tutorials and How to's on just about anything related to computers and IT. Note: All tutorials are courtesy the posters and not verified by Digit

Closed Thread
 
LinkBack Thread Tools Display Modes
Old 14-12-2006, 09:27 PM   #1 (permalink)
FRESH mind
 
Samystic's Avatar
 
Join Date: Oct 2005
Location: Mumbai
Posts: 36
Thumbs up Add "find Target" To Your Shortcuts!

Hello users!
Windows missed out something...something very useful..."Find Target" option directly on the menu of a shortcut... beginners do not find it that useful....advanced users are tired of properties>Find Target...

Here is the solution:

1)Copy this code as it is:


@echo off
setlocal
set FT="%TEMP%\Find_Target.tmp"
set FTV="C:\Find_Target.vbs"
@echo REGEDIT4>%FT%
@echo.>>%FT%
@echo [HKEY_CLASSES_ROOT\lnkfile\Shell\Find Target\command]>>%FT%
@echo @="wscript.exe \"C:\\Find_target.vbs\" \"%%1\"">>%FT%
@echo.>>%FT%
@echo.>>%FT%
@echo Dim param, filenam, targt, shortct>%FTV%
@echo Set param = WScript.Arguments>>%FTV%
@echo filenam = param (0)>>%FTV%
@echo Set WshShell = WScript.CreateObject("WScript.Shell")>>%FTV%
@echo Set shortct = WshShell.CreateShortcut(filenam)>>%FTV%
@echo targt = shortct.TargetPath>>%FTV%
@echo WshShell.Run "%windir%\explorer.exe /select," ^& Chr(34) ^& targt ^& Chr(34)>>%FTV%
regedit /s %FT%
del /q %FT%
endlocal



2)Copy and paste this code in Notepad...yes only Notepad...Wordpad won't do! (Start>Run>Notepad)

3)Save this file as Find_Target.bat in the root drive of your OS(directly in the drive where Documents and Settings, Program Files and WINDOWS reside)

4)Run Find_Target.bat (Just press Enter!)

A VB Script<Find_Target.vbs> is created...DO NOT TOUCH THAT FILE!

There you are!!! NOW YOU CAN SCREAM, SHOUT OR RUN LIKE A MADMAN...Shortcuts have their origin(Target)

Thank you and thank me!

Happy targeting!

Source : - http://www.jsifaq.com/SF/Tips/Tip.aspx?id=9693

Last edited by mehulved; 15-12-2006 at 03:47 AM.
Samystic is offline  
Advertisements. Register and be a member of the community to get rid of them.
Advertisement

Old 14-12-2006, 09:37 PM   #2 (permalink)
Alpha Geek
 
sam_1710's Avatar
 
Join Date: May 2006
Location: Bang Bang BANGALORE !!
Posts: 755
Default Re: Add "find Target" To Your Shortcuts!

kewl... thanks !! u deserved a rep for dat!!
sam_1710 is online now  
Old 14-12-2006, 09:41 PM   #3 (permalink)
GUNNING DOWN TEAMS
 
wizrulz's Avatar
 
Join Date: Mar 2005
Location: MUMBAI
Posts: 1,724
Default Re: Add "find Target" To Your Shortcuts!

good one dude....

if thats urs too good...will rep u..

if not please give source ...
__________________
The moment U stop learning ......u stop improving
wizrulz is offline  
Old 14-12-2006, 10:34 PM   #4 (permalink)
Microsoft MVP
 
Vishal Gupta's Avatar
 
Join Date: Jul 2005
Location: AskVG.com
Posts: 5,173
Default Re: Add "find Target" To Your Shortcuts!

@Samystic
Buddy! u forgot to post the source in hurry

http://www.jsifaq.com/SF/Tips/Tip.aspx?id=9693

btw Just paste following in notepad and save the file with .REG extension and then run the file:

Code:
Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\Directory\shell\Find.Target]
@="&Find Target"

[HKEY_CLASSES_ROOT\Directory\shell\Find.Target\command]
@="\"explorer.exe\" /select,\"%1\""

[HKEY_CLASSES_ROOT\*\shell]

[HKEY_CLASSES_ROOT\*\shell\Find.Target]
@="&Find Target"

[HKEY_CLASSES_ROOT\*\shell\Find.Target\command]
@="\"explorer.exe\" /select,\"%1\""
__________________
http://www.AskVG.com/

Last edited by Vishal Gupta; 14-12-2006 at 10:43 PM.
Vishal Gupta is offline  
Old 14-12-2006, 11:23 PM   #5 (permalink)
Human Spambot
 
Kiran.dks's Avatar
 
Join Date: Apr 2006
Location: Pune, India
Posts: 2,501
Default Re: Add "find Target" To Your Shortcuts!

Nice work Vishal. Reps for u. Good to see the source.

@Samystic,
You should include source while posting such things. Else you may be banned.
__________________
Kiran Kumar R
Kiran.dks is offline  
Old 14-12-2006, 11:31 PM   #6 (permalink)
Super Hero - Super Powers
 
n2casey's Avatar
 
Join Date: Sep 2006
Location: Dynamic
Posts: 766
Default Re: Add "find Target" To Your Shortcuts!

^^
Hey Vishal!

U have so much answers, just prepare to write a 400-500 pages book. (Just joking).
Nice trick, was not knowing that. Thx for that

@ Samystic

Thx for that info. Always remember to post the source if the tute is not ur own.
__________________
Minds are like Parachutes They work best when open
n2casey is offline  
Old 15-12-2006, 01:53 AM   #7 (permalink)
Broken In
 
anilmail17's Avatar
 
Join Date: Aug 2004
Location: 127.0.0.1
Posts: 149
Default Re: Add "find Target" To Your Shortcuts!

vishal i think the code provided by u create find target link for all file and folder because the code uses HKCLR\* and HKCLR\Directory but the Find target should work only for shourtcut soo the code should be like this
Code:
Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\lnkfile\shell\Find.Target]
@="&Find Target"

[HKEY_CLASSES_ROOT\lnkfile\shell\Find.Target\command]
@="\"explorer.exe\" /select,\"%1\""
anilmail17 is offline  
Old 15-12-2006, 02:46 AM   #8 (permalink)
Microsoft MVP
 
Vishal Gupta's Avatar
 
Join Date: Jul 2005
Location: AskVG.com
Posts: 5,173
Default Re: Add "find Target" To Your Shortcuts!

Yeah! The code I provided works for all files
__________________
http://www.AskVG.com/
Vishal Gupta is offline  
Old 15-12-2006, 03:47 AM   #9 (permalink)
18 Till I Die............
 
Join Date: Jul 2004
Location: India, Mumbai, Marine Lines
Posts: 5,792
Default Re: Add "find Target" To Your Shortcuts!

I have added the source for now. But, if I see this next time, you will get a ban for a week.
__________________
http://www.bash.org/?258908
mehulved is offline  
Old 15-12-2006, 04:24 PM   #10 (permalink)
Console Freak
 
aditya.shevade's Avatar
 
Join Date: Jun 2006
Location: Sangli-Maharashtra
Posts: 991
Default Re: Add "find Target" To Your Shortcuts!

@Vishal....

That only displayes the target of the shortcut file and not the source file.... Is there any was to make the source of the mail file visible?
__________________
I have launched my blog and I am looking forward to link exchange. If you can then please add my blog link your blogroll and let me know then I can do the same.

http://blog.adityashevade.com
aditya.shevade is offline  
Old 17-12-2006, 01:48 AM   #11 (permalink)
Broken In
 
anilmail17's Avatar
 
Join Date: Aug 2004
Location: 127.0.0.1
Posts: 149
Default Re: Add "find Target" To Your Shortcuts!

now i realize that the code provided by Samystic is 100% correct and code provided by me was wrong bcz Samystic creates a vbs which requires an argument of shortcut file then that vbscript find the target of shortcut and then open that target using explorer.exe /select %1
anilmail17 is offline  
Old 17-12-2006, 09:09 AM   #12 (permalink)
Console Freak
 
aditya.shevade's Avatar
 
Join Date: Jun 2006
Location: Sangli-Maharashtra
Posts: 991
Default Re: Add "find Target" To Your Shortcuts!

Ya... his script works. Can you do that with the registry?
__________________
I have launched my blog and I am looking forward to link exchange. If you can then please add my blog link your blogroll and let me know then I can do the same.

http://blog.adityashevade.com
aditya.shevade is offline  
Old 17-12-2006, 02:46 PM   #13 (permalink)
Microsoft MVP
 
Vishal Gupta's Avatar
 
Join Date: Jul 2005
Location: AskVG.com
Posts: 5,173
Default Re: Add "find Target" To Your Shortcuts!

^^
Code:
Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\lnkfile\shell\Find.Target]
@="&Find Target"

[HKEY_CLASSES_ROOT\lnkfile\shell\Find.Target\command]
@="\"explorer.exe\" /select,\"%1\""
__________________
http://www.AskVG.com/
Vishal Gupta is offline  
Old 17-12-2006, 03:56 PM   #14 (permalink)
Console Freak
 
aditya.shevade's Avatar
 
Join Date: Jun 2006
Location: Sangli-Maharashtra
Posts: 991
Default Re: Add "find Target" To Your Shortcuts!

Still no change.... The window that opens up is documents and settings\username\desktop\

Aditya
__________________
I have launched my blog and I am looking forward to link exchange. If you can then please add my blog link your blogroll and let me know then I can do the same.

http://blog.adityashevade.com
aditya.shevade is offline  
Old 17-12-2006, 08:49 PM   #15 (permalink)
Microsoft MVP
 
Vishal Gupta's Avatar
 
Join Date: Jul 2005
Location: AskVG.com
Posts: 5,173
Default Re: Add "find Target" To Your Shortcuts!

I didnt get it, what u mean?
__________________
http://www.AskVG.com/
Vishal Gupta is offline  
Old 17-12-2006, 11:13 PM   #16 (permalink)
Broken In
 
anilmail17's Avatar
 
Join Date: Aug 2004
Location: 127.0.0.1
Posts: 149
Default Re: Add "find Target" To Your Shortcuts!

vishal actually this code opens the location at which the shortcut is created and not the location of target file, this is the only reason Samystic used that vbs to fetch the target location from the shortcut file
__________________
visit my blog
www.anilsoni.wordpress.com
anilmail17 is offline  
Old 18-12-2006, 12:12 AM   #17 (permalink)
Console Freak
 
aditya.shevade's Avatar
 
Join Date: Jun 2006
Location: Sangli-Maharashtra
Posts: 991
Unhappy Re: Add "find Target" To Your Shortcuts!

Quote:
Originally Posted by anilmail17
vishal actually this code opens the location at which the shortcut is created and not the location of target file, this is the only reason Samystic used that vbs to fetch the target location from the shortcut file
Ya that is what happens.... What I wanted to say was that, but I have exams on 23rd and right now my head is going to get ripped off.... don't mind.
__________________
I have launched my blog and I am looking forward to link exchange. If you can then please add my blog link your blogroll and let me know then I can do the same.

http://blog.adityashevade.com
aditya.shevade is offline  
Old 20-12-2006, 02:30 PM   #18 (permalink)
FRESH mind
 
Samystic's Avatar
 
Join Date: Oct 2005
Location: Mumbai
Posts: 36
Default Re: Add "find Target" To Your Shortcuts!

Ok guys...nxt time u'll have the source...vishal is right...may be i was in a hurry...
Samystic is offline  
Closed Thread

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +5.5. The time now is 02:50 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.

Search Engine Optimization by vBSEO 3.3.2