ShellBrowser Delphi Components Documentation
|
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.
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');