JavaScript
JavaScript
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.
Note
This example is intended for running within a Chilkat.Js embedded JavaScript engine. All Chilkat JavaScript examples require Chilkat
v11.4.0 or greater.
var fac = new CkFileAccess();
var targetPath = fac.SymlinkTarget("qa_data/my_shortcut");
if (fac.LastMethodSuccess !== true) {
console.log("Failed to get shortcut target.");
return;
}
console.log("target path = " + targetPath);