Visual FoxPro
Visual FoxPro
Get the Target of a Windows Shortcut
See more FileAccess Examples
Demonstrates how to get the target of a Windows shortcut.Note: This example requires Chilkat v9.5.0.77 or greater.
Chilkat Visual FoxPro Downloads
LOCAL loFac
LOCAL lcTargetPath
loFac = CreateObject('Chilkat.FileAccess')
lcTargetPath = loFac.SymlinkTarget("qa_data/my_shortcut")
IF (loFac.LastMethodSuccess <> 1) THEN
? "Failed to get shortcut target."
RELEASE loFac
CANCEL
ENDIF
? "target path = " + lcTargetPath
RELEASE loFac