Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to get the path of *.lnk file ?

Status
Not open for further replies.

aribot

Programmer
Dec 5, 2002
17
ES
Hello every body !!

How can I get the full path of a windows "ShortCut" (*.lnk )file ?
I'm using the WIN32_FIND_DATA structure but there isn't any property for *.lnk files.

Thanks!
 
Have you tried looking at Properties on it's Right Click menu?? ;-)

However, if you mean programatically. If you are using a commondialog or the like then it automatically has it's full path in the commondialog1.FileName property.
If you are dragging it into your program, search this forum for "Drag Drop Files" It should yield enough results for you.

Hope this helps.


jgjge3.gif
[tt]"Very funny, Scotty... Now Beam down my clothes."[/tt]
 

I'm not using a commondialog neither dragging into my program. I'm programing a search files program and I want it looks into all folders and in certain cases look into the folders linked by a shortcut to a folder. That's why I need the path of the link !!

Thanks !!
 
Thank you for the exclamation marks.

I regret to inform you that, now you have explained that you would like the TARGET path of the shortcut and not the PATH, that I do not have that knowledge in my cerebral cortex.

Thanks !!


jgjge3.gif
[tt]"Very funny, Scotty... Now Beam down my clothes."[/tt]
 
A quick keyword search in this forum should find several of my and others posts concerning handling shortcuts from VB, including setting and reading the Target property
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top