rlnk

Crates.iorlnk
lib.rsrlnk
version0.1.7
sourcesrc
created_at2021-08-02 02:24:50.1857
updated_at2021-08-04 01:43:15.511003
descriptioncreate windows shortcuts (lnk files)
homepage
repositoryhttps://github.com/dobefore/rlnk.git
max_upload_size
id430208
size62,982
(dobefore)

documentation

https://docs.rs/rlnk/

README

rlnk

crates.io API

Usage

Add this to your Cargo.toml:

[dependencies]
rlnk = "0.1.7"

example code

use rlnk::ShellLink;
let target=r"C:\Users\Admin\Desktop\new aa\qiuqiu.exe";
let lnk=r"C:\Users\Admin\Desktop\qiuqiu.lnk";
let mut sl=ShellLink::new();
sl.create_lnk(target,lnk); 

How it works

Shortcut.exe as an external exec_file which should be written to Windows Temp directory is executed with parameters to create windows shortcuts.

Commit count: 20

cargo fmt