ShellBrowser Delphi Edition Documentation
ContentsIndexHome
PreviousUpNext
GetLinkTarget Function

For a given shell link (.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
function GetLinkTarget(const filepath: UnicodeString): UnicodeString;

The target path of a shell link.

var target: TFilename; ... target := GetLinkTarget('C:test.LNK'); ... target := GetLinkTarget('C:Documents and Settingsuser1NethoodDocuments at Server2');
Copyright (c) 2011. All rights reserved.