Winamp & Shoutcast Forums

Winamp & Shoutcast Forums (http://forums.winamp.com/index.php)
-   NSIS Discussion (http://forums.winamp.com/forumdisplay.php?f=65)
-   -   Read the target of a shortcut (http://forums.winamp.com/showthread.php?t=229584)

Katkarot 28th October 2005 20:32

Read the target of a shortcut
 
Hi,
Is there a way to read the target of a shortcut? Basically, I want to retrieve the directory of the target of a shortcut.

for example, I can create shortcuts
CreateShortCut "$SMPROGRAMS\My Software\MyProgram\Run Program.lnk" "$INSTDIR\myProgram.exe" "" "$INSTDIR\icon.ICO"

I would like get the target of the link "Run Program.lnk".

TIA

K

pengyou 28th October 2005 21:23

Use this plugin:

http://nsis.sourceforge.net/ShellLink_plugin

Katkarot 28th October 2005 21:55

Thanks! That helped!

K


All times are GMT. The time now is 05:12.

Copyright © 1999 - 2010 Nullsoft. All Rights Reserved.