win-lnk-parser
v1.1.2
Published
A vbs solution based to parse lnk files (windows shortcuts) supporting special chars
Downloads
5
Maintainers
Readme
win-lnk-parser
Simple package to read some metadata info from .lnk files (windows shortcuts) with support for special characters
Pre-requisites
This package only works on Windows and you must have the following apps:
$ chcp /?
$ cscript /?
Usage
$ npm i --save win-lnk-parser
const lnkParser = require('win-lnk-parser')
const fullPath = "c:\\...\\...\\example.lnk"
const go = async () => {
const {
targetPath
windowStyle
hotKey
iconLocation
description
workingDirectory
} = await lnkParser(fullPath, [codePage=850])
}
- fullPath - absolute path to .lnk file
- codePage - defaults to 850 (see here for more information)
Author
José Varela (joselcvarela//at//gmail.com)