AutoIt
AutoIt
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 AutoIt Downloads
$oFac = ObjCreate("Chilkat.FileAccess")
Local $sTargetPath = $oFac.SymlinkTarget("qa_data/my_symlink")
If ($oFac.LastMethodSuccess <> True) Then
ConsoleWrite("Failed to get symlink target." & @CRLF)
Exit
EndIf
ConsoleWrite("target path = " & $sTargetPath & @CRLF)