ShellBrowser Delphi Components Documentation
ContentsIndexHome
PreviousUpNext
JamSelectionList.TJamPathList.GetShortcutTarget

For a given shell shortcut (.LNK file), this function returns the full path of the target of this link. If the given file is not a link file, or the target could not be retrieved, an empty string is returned.

Syntax
Pascal
class function GetShortcutTarget(const filepath: String): String;
Parameters 
Description 
const filepath: String 
The path to the shell link. 

The target path of a shell link.

var target: TFilename;
...
target := GetLinkTarget('C:test.LNK');
...
target := GetLinkTarget('C:Documents and Settingsuser1NethoodDocuments at Server2');