mslnk 0.1.6

create windows shortcuts (lnk files)
Documentation

mslnk

Rust implementation to create Windows shortcut (ms shell .lnk),theoretically support WIndows 7,8,10. Tested on Windows 10.

Usage

Add this to your Cargo.toml:

[dependencies]

mslnk = "0.1.6"

examole to create lnk

use mslnk::ShellLink;

let target = r"C:\Users\Admin\Desktop\qq aa\qiuqiu.exe";
let lnk = r"C:\Users\Admin\Desktop\qq.lnk";
let sl = ShellLink::new(target).unwrap();
sl.create_lnk(lnk).unwrap();

entirely written in rust,no external command,support unicode string ,such as Chinese characters. Ispired bylnk-rs for parsing and writing lnk file. microsoft shell lnk doc click here ms-shllink