PHP Extension
PHP Extension
Get the Target of a Windows Shortcut
See more FileAccess Examples
Demonstrates how to get the target of a Windows shortcut.Note: This example requires Chilkat v9.5.0.77 or greater.
Chilkat PHP Extension Downloads
<?php
include("chilkat.php");
$fac = new CkFileAccess();
$targetPath = $fac->symlinkTarget('qa_data/my_shortcut');
if ($fac->get_LastMethodSuccess() != true) {
print 'Failed to get shortcut target.' . "\n";
exit;
}
print 'target path = ' . $targetPath . "\n";
?>