Sample code for 30+ languages & platforms
B4X

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 B4X Downloads

B4X
Dim fac As ChilkatFileAccess
fac.Initialize

Dim targetPath As String = fac.SymlinkTarget("qa_data/my_symlink")
If fac.LastMethodSuccess <> True Then
    Log("Failed to get symlink target.")
    Return
End If

Log("target path = " & targetPath)