PowerShell
PowerShell
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 PowerShell Downloads
Add-Type -Path "C:\chilkat\ChilkatDotNet47-x64\ChilkatDotNet47.dll"
$fac = New-Object Chilkat.FileAccess
$targetPath = $fac.SymlinkTarget("qa_data/my_symlink")
if ($fac.LastMethodSuccess -ne $true) {
$("Failed to get symlink target.")
exit
}
$("target path = " + $targetPath)