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.
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.
[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 !!
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 !!
[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
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.