Lianja
Lianja
Get the Target of a Symbolic Link
See more FileAccess Examples
Demonstrates how to get the target of a symbolic link.Note: This example requires Chilkat v9.5.0.77 or greater.
Chilkat Lianja Downloads
loFac = createobject("CkFileAccess")
lcTargetPath = loFac.SymlinkTarget("qa_data/my_symlink")
if (loFac.LastMethodSuccess <> .T.) then
? "Failed to get symlink target."
release loFac
return
endif
? "target path = " + lcTargetPath
release loFac