Classic ASP
Classic ASP
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 Classic ASP Downloads
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body>
<%
set fac = Server.CreateObject("Chilkat.FileAccess")
targetPath = fac.SymlinkTarget("qa_data/my_symlink")
If (fac.LastMethodSuccess <> 1) Then
Response.Write "<pre>" & Server.HTMLEncode( "Failed to get symlink target.") & "</pre>"
Response.End
End If
Response.Write "<pre>" & Server.HTMLEncode( "target path = " & targetPath) & "</pre>"
%>
</body>
</html>