Node's built-in fs
has a fs.readLink
function, but it appears to be for symbolic links/junctions. How can I read the properties of a Windows shortcut (a .lnk
file), to find out where it leads?
For example: C:\ProgramData\Microsoft\Windows\Start Menu\Adobe Animate CC 2019.lnk
leads to C:\Program Files\Adobe\Adobe Animate CC 2019\Animate.exe
. But how can I read the .lnk
file to find out where the link leads?
I found exif-parser
, but that module only works for image metadata in the exif format, which it appears .lnk files do not use.