#link #lnk #windows

parselnk

Parse windows .lnk files in pure rust

2 releases

0.1.1 Jan 28, 2022
0.1.0 Jan 16, 2020

#53 in #link

Download history 149/week @ 2024-06-17 101/week @ 2024-06-24 111/week @ 2024-07-01 114/week @ 2024-07-08 69/week @ 2024-07-15 122/week @ 2024-07-22 122/week @ 2024-07-29 366/week @ 2024-08-05 138/week @ 2024-08-12 83/week @ 2024-08-19 137/week @ 2024-08-26 298/week @ 2024-09-02 96/week @ 2024-09-09 73/week @ 2024-09-16 83/week @ 2024-09-23 121/week @ 2024-09-30

388 downloads per month
Used in 3 crates

MIT license

87KB
1K SLoC

parselnk

Build Status Documentation

Parse Windows .lnk files in pure Rust!

Usage

In your Cargo.toml:

From crates.io:

[dependencies]
parselnk = "0.1"

To use master branch:

[dependencies]
parselnk = { git = "https://github.com/rustysec/parselnk-rs" }

In your code:

let lnk_path = std::path::Path::new(r"c:\users\me\desktop\slack.lnk");
let lnk = parselnk::Lnk::from(lnk_path).unwrap();

println!("Lnk relative path: {:?}", lnk.relative_path());

Features

These features are enabled by default and can be toggled off by specifying default-features = false in your Cargo.toml:

# Disable optional features
[dependencies]
parselnk = { version = "0.1", default-features = false }
  • chrono - exposes convenience methods for parsing windows FileTime structures

Helping Out

Issues and pull requests are welcome!

Dependencies

~1.9–2.6MB
~46K SLoC