3MGrant5 (?)

This is dumb, but if you've got the NT ResKit, you can use shortcut.exe like this:

code:

break on


$linkDir = "c:\shortcuts" ; Directory where your shortcut lives
$linkFile = "notepad.lnk" ; Shortcut name
$tempFile = "%temp%\shortcut.tmp" ; Temporary work file


if exist ( "$linkDir\$linkFile" )


cd "$linkDir"


del "$tempFile"


shell '%comspec% /c c:\ntreskit\shortcut.exe -u t "$linkFile" > "$tempFile"'


if exist ( "$tempFile" ) and open ( 1, "$tempFile", 2 ) = 0


$target = readline (1)


?"target = $target"


$= close (1)


endif


endif


exit


Shawn.