Lua Requires Chilkat v9.5.0.77+
Lua
Get the Target of a Windows Shortcut
See more FileAccess Examples
Demonstrates how to get the target of a Windows shortcut.Chilkat Lua Downloads
local chilkat = require("chilkat")
local fac = chilkat.FileAccess.new()
local targetPath = fac:symlink_target("qa_data/my_shortcut")
if not fac.last_method_success then
print("Failed to get shortcut target.")
return
end
print("target path = " .. targetPath)