Delphi DLL Requires Chilkat v9.5.0.77+
Delphi DLL
Get the Target of a Windows Shortcut
See more FileAccess Examples
Demonstrates how to get the target of a Windows shortcut.Chilkat Delphi DLL Downloads
var
fac: HCkFileAccess;
targetPath: PWideChar;
begin
fac := CkFileAccess_Create();
targetPath := CkFileAccess__symlinkTarget(fac,'qa_data/my_shortcut');
if (CkFileAccess_getLastMethodSuccess(fac) <> True) then
begin
Memo1.Lines.Add('Failed to get shortcut target.');
Exit;
end;
Memo1.Lines.Add('target path = ' + targetPath);
CkFileAccess_Dispose(fac);