https://github.com/freeslave/lnk
D library for parsing .lnk files
https://github.com/freeslave/lnk
d dlang lnk lnk-files
Last synced: 4 months ago
JSON representation
D library for parsing .lnk files
- Host: GitHub
- URL: https://github.com/freeslave/lnk
- Owner: FreeSlave
- License: bsl-1.0
- Created: 2016-03-13T14:33:16.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2017-02-03T20:37:09.000Z (over 9 years ago)
- Last Synced: 2025-01-22T14:45:52.670Z (over 1 year ago)
- Topics: d, dlang, lnk, lnk-files
- Language: D
- Homepage:
- Size: 17.6 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE_1_0.txt
Awesome Lists containing this project
README
# LNK
D library for parsing Shell Link files (.lnk aka shortcuts).
[](https://travis-ci.org/FreeSlave/lnk) [](https://ci.appveyor.com/project/FreeSlave/lnk)
No IShellLink COM interface is used. Instead the library implements parsing of
.lnk files itself according to [Shell Link Binary File Format](https://msdn.microsoft.com/en-us/library/dd871305.aspx) specification.
Using of WinAPI is minimized too, so the library can be used on other platforms
than Windows (Although there's little sense for it).
**Note:** it's not fully implemented yet.
## Examples
### [ReadLnk](examples/readlnk/source/app.d)
Run to parse .lnk file and print results to stdout:
dub run lnk:readlnk -- somelink.lnk
Note that running this in cmd.exe console may print garbage characters if
link's target has unicode characters in its name. So it's better to redirect output to file.
dub run lnk:readlnk -- somelink.lnk > test.txt