From: Ashutosh on
Hi,
How can I retrieve the target of a shortcut file (.lnk) using the path
of the .lnk file?

Regards,
Ashutosh
From: Tom Serface on
If you are using MFC you could try PJ's class. It works pretty nicely. If
not, you could look at it to see how he wraps the ShellLink functionality:

http://www.naughter.com/shelllink.html

Tom

"Ashutosh" <smbs-msdn(a)nospam.nospam> wrote in message
news:OrG8jkNzIHA.1236(a)TK2MSFTNGP02.phx.gbl...
> Hi,
> How can I retrieve the target of a shortcut file (.lnk) using the path of
> the .lnk file?
>
> Regards,
> Ashutosh

From: Igor Tandetnik on
Ashutosh <smbs-msdn(a)nospam.nospam> wrote:
> How can I retrieve the target of a shortcut file (.lnk) using the path
> of the .lnk file?

IShellLink
--
With best wishes,
Igor Tandetnik

With sufficient thrust, pigs fly just fine. However, this is not
necessarily a good idea. It is hard to be sure where they are going to
land, and it could be dangerous sitting under them as they fly
overhead. -- RFC 1925


From: Ashutosh Bhawasinka on
Thanks Tom! not for this question...but to point me to PJN's site!!


Tom Serface wrote:
> If you are using MFC you could try PJ's class. It works pretty nicely.
> If not, you could look at it to see how he wraps the ShellLink
> functionality:
>
> http://www.naughter.com/shelllink.html
>
> Tom
>
> "Ashutosh" <smbs-msdn(a)nospam.nospam> wrote in message
> news:OrG8jkNzIHA.1236(a)TK2MSFTNGP02.phx.gbl...
>> Hi,
>> How can I retrieve the target of a shortcut file (.lnk) using the path
>> of the .lnk file?
>>
>> Regards,
>> Ashutosh
>
From: Ashutosh Bhawasinka on
IShellLink doesn't work!

Actually, before posting this question I had already tried using the
IShellLink interface. It didn�t work. I have tried all (probably)
combinations of calling SetPath, Resolve, GetPath on that interface. It
didn�t return the target ! Also, for this I don�t think IPersistFile
interface is required as its used to save files (shortcuts)



Igor Tandetnik wrote:
> Ashutosh <smbs-msdn(a)nospam.nospam> wrote:
>> How can I retrieve the target of a shortcut file (.lnk) using the path
>> of the .lnk file?
>
> IShellLink
 |  Next  |  Last
Pages: 1 2
Prev: VB6 - VC6
Next: log on/ log off